SmartyStreets 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 SmartyStreets 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.
- How to Get It
- How to Use It
- API Reference Material
- 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 SmartyStreets has already created an address verification component.
- Congratulations! You are now ready to use the SmartyStreets 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 SmartyStreets Go SDK repository on Github.
How to Use It
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:
Here are a few examples showing how to use the Go SDK: