Registry / http-client / google-go-github

google-go-github

JSON →
library17.0.0+incompatiblegogounverified

Package go-github provides a Go client for the GitHub API.

go get github.com/google/go-github
INSTALL
IMPORT
SIG · GOOGLE-GO-GITHUB
G
google-go-github
http-clientgov17.0.0+incompatible
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/v17/github

Get a GitHub user

package main import ( "context" "fmt" "github.com/google/go-github/v17/github" ) func main() { client := github.NewClient(nil) user, _, _ := client.Users.Get(context.Background(), "octocat") fmt.Printf("User: %s\n", *user.Login) }
Debug
Known issues
breakingMajor version v17 uses Go modules with /v17 in path; older versions use different import paths.
fix
Use import path github.com/google/go-github/v17/github for v17.
affects: >=17.0.0
Upgrade
Version history
17.0.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources