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

google-go-github-v50

JSON →
library50.2.0gogounverified

A Go client library for accessing the GitHub API v3, version 50.

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

Fetch a GitHub user's information.

package main import ( "context" "fmt" "github.com/google/go-github/v50/github" ) func main() { client := github.NewClient(nil) user, _, err := client.Users.Get(context.TODO(), "octocat") if err != nil { panic(err) } fmt.Println(user.GetLogin()) }
Debug
Known issues
breakingVersion 50 uses Go modules with major version suffix; import path must include /v50.
fix
Use import path github.com/google/go-github/v50 instead of github.com/google/go-github.
affects: >=50.0.0
Upgrade
Version history
50.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
Resources
google-go-github-v50 — go get google-go-github-v50 · libregistry