It's a little hacky so far, so there is certainly room for improvements, but it works!
It's fairly simple to use in the current state all you really need is your client id
package main
import "github.com/simplyserenity/twitchOAuth"
func main(){
scopes := []string{"chat_login", "user_read"}
token, err := twitchAuth.GetToken(<clientID>, scopes);
if err != nil {
panic(err)
}
}
And that's it really, the user's browser will open and they'll be asked to verify, and the token should make its way back to you.