OAuth2 for Go oauth2 package contains a client implementation for OAuth 2.0 spec. Installation go get golang.org/x/oauth2 See godoc for further documentation and examples. godoc.org/golang.org/x/oauth2 godoc.org/golang.org/x/oauth2/google