Registry / http-client / google-go-github-v31

google-go-github-v31

JSON →
library31.0.0gogounverified

Go client library for accessing the GitHub API v3.

go get github.com/google/go-github/v31
INSTALL
IMPORT
SIG · GOOGLE-GO-GITHUB-V
G
google-go-github-v31
http-clientgov31.0.0
harness data pending
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/v31/github

Fetch a GitHub user using the API client.

package main import ( "context" "fmt" "github.com/google/go-github/v31/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
breakingVersion v31 is outdated; consider using a newer major version.
fix
Update to the latest major version (e.g., v62) for new features and fixes.
affects: 31.0.0
Upgrade
Version history
31.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
Resources
google-go-github-v31 — go get google-go-github-v31 · libregistry