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

google-go-github-v26

JSON →
library26.1.3gogounverified

Go client library for accessing the GitHub API.

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

Fetch a GitHub user's profile using the API client.

package main import ( "context" "fmt" "github.com/google/go-github/v26/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 26 is outdated; consider using v53 or later for latest features.
fix
Update to the latest major version: go get github.com/google/go-github/v53
affects: 26.x
Upgrade
Version history
26.1.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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