SHARE
TWEET

Untitled

a guest Aug 19th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func main() {
  2.     client := horizonclient.DefaultPublicNetClient
  3.     opRequest := horizonclient.OperationRequest{Cursor: "now"}
  4.  
  5.     ctx, _ := context.WithCancel(context.Background())
  6.  
  7.     printHandler := func(op operations.Operation) {
  8.         go func() {
  9.             // Do something here
  10.         }()
  11.     }
  12.     err := client.StreamPayments(ctx, opRequest, printHandler)
  13.     if err != nil {
  14.         fmt.Println(err)
  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