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

google-go-github-v47

JSON →
library47.1.0gogounverified

Go client library for accessing the GitHub API v3.

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

Creates a GitHub client and fetches a user's login name.

package main import ( "context" "fmt" "github.com/google/go-github/v47/github" ) func main() { client := github.NewClient(nil) user, _, _ := client.Users.Get(context.Background(), "octocat") fmt.Println(*user.Login) }
Debug
Known issues
breakingVersion v47 uses Go modules with /v47 in the import path; ensure your go.mod requires the correct major version.
fix
Run 'go get github.com/google/go-github/v47@latest' and import as 'github.com/google/go-github/v47/github'.
affects: >=47.0.0
Upgrade
Version history
47.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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