-
Notifications
You must be signed in to change notification settings - Fork 321
Context in requests - beginning of a breaking change discussion #93
Comments
@orian This is a good suggestion. I'm curious what you mean by "The go' standard way is to pass context as first argument.". As far as I know, the standard way is to call Here's a suggestion in the meantime: If you want to specify e.g. a timeout globally for all your Shopify requests, then you could look into replacing the |
Thanks. I'm aware about client method. By "standard" I mean that at least few |
I understand your point about the "official" recommendation being to always add the Perhaps you have some suggestions on how to best manage a breaking change like this? |
I think using: http://labix.org/gopkg.in would make the most sense. Or we can break the API and provide instructions for current users to switch to gopkg.in/getconversio/go-shopify.v1 and move master forward. Moving master forward is good idea for future so dep and other more advanced tools always fetch the most recent version. |
I'll be honest and say that I haven't followed the progress on this front, so I'm not familiar with the Reading the documentation for What do you think? Is this similar to what you had in mind as well? Ideally, I would like to follow official guidelines about dependency management, so focusing on supporting PS. I changed the title of this issue to better reflect this is now kind of a discussion topic. 🍻 |
This issue was moved to bold-commerce#5 |
It should be possible to add
context.Context
to requests. It's particularly useful for a request we want to control a timeout, so one can usecontext.WithTimeout()
.Not sure about how to make it as the current implementation assumes that options is just
query.Values
.The go' standard way is to pass context as first argument.
The text was updated successfully, but these errors were encountered: