go get github.com/lastbackend/vendors
import "github.com/lastbackend/vendors"
Get client for github
var client = vendors.GetGitHub(clientID, clientSecretID, redirectURI)
Get token using auth code
token, err := client.GetToken(code)
if err != nil {
return err
}
Get user information use token
user, err := client.GetUser(token)
if err != nil {
return err
}