Vonage / vonage-go-sdk

A lightweight library to help Go users everywhere integrate with the Vonage APIs. Issues and PRs all really welcome!!
https://vonage.github.io/vonage-go-sdk/
Apache License 2.0
51 stars 32 forks source link

Set a consistent user agent with a single place to update it #47

Closed lornajane closed 3 years ago

lornajane commented 3 years ago

We had a hardcoded user agent header (and it wasn't even hardcoded to the correct value). This adds a utils file for common functionality and adds both a version function and a user agent function (that uses the version function) so we only need to update in one place when we release.