go-github is a Go client library for accessing the GitHub API v3. Currently, go-github requires Go version 1.13 or greater. go-github tracks Go's version support policy. We do our best not to break older versions of Go if we don't have to, but due to tooling constraints, we don't always test older versions. If you're interested in using the GraphQL API v4, the recommended library is shurcooL/githubv4. go-github is compatible with modern Go releases in module mode. Resolve and add the package to the current development module, along with its dependencies. Alternatively the same can be achieved if you use import in a package. Construct a new GitHub client, then use the various services on the client to access different parts of the GitHub API. Some API methods have optional parameters that can be passed. Using the context package, one can easily pass cancelation signals and deadlines to various services of the client for handling a request.

Features

  • GitHub Apps authentication can be provided by the ghinstallation package
  • When using an authenticated Client, all calls made by the client will include the specified OAuth token
  • The go-github library does not directly handle authentication
  • The GitHub API has good support for conditional requests
  • All structs for GitHub resources use pointer values for all non-repeated fields
  • You can run integration tests from the test directory

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

BSD License

Follow go-github

go-github Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of go-github!

Additional Project Details

Programming Language

Go

Related Categories

Go Libraries

Registered

2021-07-23