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
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
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