ns1 / ns1-go

Golang API client for NS1
Apache License 2.0
34 stars 59 forks source link

Add "WithContext" methods #181

Closed jamesgoodhouse closed 1 year ago

jamesgoodhouse commented 1 year ago

This keeps all the exact same functionality of the original methods, but now allows a context to be passed in for better control of the request. This is the preferred way of managing a request, setting a deadline, adding instrumentation, etc. Addresses issue https://github.com/ns1/ns1-go/issues/180.