Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func main() {
- client := horizonclient.DefaultPublicNetClient
- opRequest := horizonclient.OperationRequest{Cursor: "now"}
- ctx, _ := context.WithCancel(context.Background())
- printHandler := func(op operations.Operation) {
- go func() {
- // Do something here
- }()
- }
- err := client.StreamPayments(ctx, opRequest, printHandler)
- if err != nil {
- fmt.Println(err)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement