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

google-go-github-v41

JSON →
library41.0.0gogounverified

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

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

Fetch a GitHub user using the API client

package main import ( "context" "fmt" "github.com/google/go-github/v41/github" ) func main() { client := github.NewClient(nil) user, _, _ := client.Users.Get(context.Background(), "octocat") fmt.Println(user.GetLogin()) }
Debug
Known issues
breakingVersion v41 uses Go modules with a major version suffix; import path must include /v41.
fix
Use the correct import path: github.com/google/go-github/v41
affects: >=41.0.0
Upgrade
Version history
41.0.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-v41 — go get google-go-github-v41 · libregistry