SHARE
TWEET

Untitled

a guest Jul 20th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ```go
  2. import (
  3.   "fmt"
  4.   "context"
  5.   "github.com/apache/pulsar/pulsar-function-go/pf"
  6. )
  7.  
  8. func HandleRequest(ctx context.Context, in []byte) error {
  9.   fmt.Println(string(in) + "!")
  10.   return nil
  11. }
  12.  
  13. func main() {
  14.   pf.Start(HandleRequest)
  15. }
  16. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top