Have your first go at Go with the IBM Watson GO SDK , a wrapper for the IBM Watson APIs. The SDK includes ready to use data structures and takes care of all the underlying HTTP requests including authentication. Using this SDK, developers can now easily integrate Watson services into their applications.
How to install
GO command on the terminal.
go get -u github.com/watson-developer-cloud/go-sdk/...
This will fetch the packages sub-packages and dependencies.
How to Use
Now, follow the below general steps in your code:
- Import the service package
2. Instantiate the Watson service using the API key obtained above
3. Invoke the API endpoint using the service instance. For a successful response, it will contain the HTTP status code, response headers and API result
4. Handle responses and errors
Ready, Set, GO
Go ahead and explore the various capabilities of IBM Watson services with GO — from quickly building a simple chatbot to tagging and classifying visual content to unlocking hidden value in data to find answers and surface patterns.