oauth2 package contains a client implementation for OAuth 2.0 spec.
go get github.com/golang/oauth2
See godoc for further documentation and examples.
Fork the repo, make changes, run the tests and open a pull request.
Before we can accept any pull requests we have to jump through a couple of legal hurdles, primarily a Contributor License Agreement (CLA):
You can sign these electronically (just scroll to the bottom). After that, we'll be able to accept your pull requests.