Webinar
Smarty

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

  1. Requirements
  2. How to get it
    1. The 'go' command
    2. Download the source code
  3. How to use it
    1. Demo
    2. Documentation
    3. Examples
  4. API reference material

requirements

  1. Decide to build a software project using the Go programming language.
  2. Download and install Go version 1.7+.
  3. Setup a Go workspace.
  4. Build enough of the project to realize that you now need an address verification component.
  5. Wisely conclude that you don't want to build your own address verification component.
  6. Realize that Smarty has already created an address verification component.
  7. 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.

Use the source, Luke!

How to use it

Demo

s

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: