This is "go get"-able project and Travis-CI buildable.
You can use go get command:
go get github.com/atotto/travisci-golang-example
Testing:
go test github.com/atotto/travisci-golang-example/...
You can see a build status: https://travis-ci.org/atotto/travisci-golang-example
Building a Go Project: http://about.travis-ci.org/docs/user/languages/go/
How to Write Go Code: http://golang.org/doc/code.html