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

google-go-github-v38

JSON →
library38.1.0gogounverified

A Go client library for accessing the GitHub API v3.

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

Fetch a GitHub user's profile using the public API.

package main import ( "context" "github.com/google/go-github/v38/github" "log" ) func main() { client := github.NewClient(nil) user, _, err := client.Users.Get(context.Background(), "octocat") if err != nil { log.Fatal(err) } log.Printf("User: %s\n", user.GetLogin()) }
Debug
Known issues
gotchaVersion v38 is outdated; consider upgrading to the latest major version for new features and fixes.
fix
Use the latest version (e.g., v70) by updating the import path to github.com/google/go-github/v70.
affects: 38.1.0
Upgrade
Version history
38.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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