Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
github
✓ github.com/google/go-github/v51/github
Fetch a GitHub user by username
package main
import (
"context"
"fmt"
"github.com/google/go-github/v51/github"
)
func main() {
client := github.NewClient(nil)
user, _, _ := client.Users.Get(context.Background(), "octocat")
fmt.Println(*user.Login)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
51.0.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.