neilotoole.io

Web presence of Neil O'Toole.

go-github auth API

I’ve been working a lot with the GitHub API of late, for the Go-based client I’m building for HPE. One of the key elements for us (and for everybody else I assume) is the GitHub auth infrastructure. So far, the go-github lib has served us well, except that, for whatever reason, the entire auth API was not implemented. From my perspective, that would have been the first thing I implemented, but that was the situation.

I opened a PR for it, which was recently merged (with some modifications… specifically about use of pointer vs value types). Anyhoo, the good news is, you can now use go-github to perform auth against their API. Credit to the go-github lib maintainers, they did respond very quickly and in a collegiate manner, that’s how a project should be run.

For more on go-github, see their project page.