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

google-go-github-v24

JSON →
library24.0.1gogounverified

Package github provides a Go client library for accessing the GitHub API v3.

go get github.com/google/go-github/v24
INSTALL
IMPORT
SIG · GOOGLE-GO-GITHUB-V
G
google-go-github-v24
http-clientgov24.0.1
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/v24/github

Create a GitHub client and fetch a user's information.

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

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Resources
google-go-github-v24 — go get google-go-github-v24 · libregistry