Skip to content

Added ability to pass Context to operations and Custom HTTP client to Gopaapi5 Client

Compare
Choose a tag to compare
@utekaravinash utekaravinash released this 12 Mar 14:02
· 4 commits to master since this release

This release contains a breaking change:

  1. These Client methods now accept context.Context as their first parameter: GetBrowseNodes, GetItems, GetVariations, and SearchItems

Also, you can now pass your custom HTTP client to the gopaapi5 client using SetHttpClient method.

I decided not to move to new major release inspite of having breaking changes as the library seems to have not yet been used by many users. I'll make sure it doesn't happen again in future though. Thanks!