Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  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. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement