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/v58
Fetch a GitHub user by username
package main
import (
"context"
"fmt"
"github.com/google/go-github/v58/github"
)
func main() {
client := github.NewClient(nil)
user, _, err := client.Users.Get(context.Background(), "octocat")
if err != nil {
panic(err)
}
fmt.Println(*user.Login)
}
Debug
Known issues
breakingMajor version v58 may have breaking changes from v57; check migration guide.fixReview the changelog at https://github.com/google/go-github/releases for breaking changes.
affects: >=58.0.0 <59.0.0
Upgrade
Version history
58.0.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.