Install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Install go
brew install go --cross-compile-all
Configure $GOPATH in ~/.bashrc
export GOPATH="$HOME/go"
export PATH=$PATH:$GOPATH/bin
You can download the code and its dependencies using
go get -t github.com/bugsnag/bugsnag-go
It will be put into "$GOPATH/src/github.com/bugsnag/bugsnag-go"
Then install depend
You can run the tests with
go test
If you've made significant changes, please also test the appengine integration with
goapp test
If you are a project maintainer, you can build and release a new version of
bugsnag-go as follows:
bugsnag.go.CHANGELOG.md and update the README if necessary.Commit tag and push
git commit -mv1.0.x && git tag v1.0.x && git push origin v1.0.x
Update the setup guides for Go (and its frameworks) on docs.bugsnag.com with any new content.