Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

Support context pattern #6

Open
pcariel opened this issue Apr 28, 2017 · 0 comments
Open

Support context pattern #6

pcariel opened this issue Apr 28, 2017 · 0 comments

Comments

@pcariel
Copy link

pcariel commented Apr 28, 2017

See this blog article:

https://blog.golang.org/context

ctx := context.WithCancel(context.Background())
resp, err = client.Post(ctx, "/items", body)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant