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

google-go-github-v59

JSON →
library59.0.0gogounverified

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

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

Fetch a GitHub user by username.

package main import ( "context" "fmt" "github.com/google/go-github/v59/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 v59 is a separate module; imports must include the version suffix.
fix
Use 'import "github.com/google/go-github/v59/github"' in your go.mod.
affects: >=59.0.0
Upgrade
Version history
59.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
google-go-github-v59 — go get google-go-github-v59 · libregistry