Smarty Go SDK
If you want to access our US Street Address API or US ZIP Code API from an application written in the Go programming language, the Smarty Go SDK can make it a lot easier. Our Go SDK includes ready-made data structures and takes care of all the gritty, low-level HTTP intricacies for you.
Contents
requirements
- Decide to build a software project using the Go programming language.
- Download and install Go version 1.7+.
- Setup a Go workspace.
- Build enough of the project to realize that you now need an address verification component.
- Wisely conclude that you don't want to build your own address verification component.
- Realize that Smarty has already created an address verification component.
- Congratulations! You are now ready to use the Smarty Go SDK.
How to get it
The 'go' command
The easiest way to get your giddy hands on this goodness is by using the go command at the terminal.
go get -t -u github.com/smartystreets/smartystreets-go-sdk
You can then import the SDK packages in your Go project. (See the examples below.)
Download the source code
You can download the source code from the Smarty Go SDK repository on Github.
How to use it
Demo
Documentation
If you're new to the Go community, do yourself a favor and learn about godoc and godoc.org. The Go SDK makes use of godoc conventions for documenting source code, which you can read by downloading the source code or perusing the auto-generated documentation for each package in the SDK:
Examples
Here are a few examples showing how to use the Go SDK: