HTTP Basic Auth example in Go (based on http://stackoverflow.com/a/21937924/556573 + bespoke middleware implementation) · GitHub
https://gist.github.com/elithrar/9146306
46800306