example/ directory

Directories

PathSynopsis
example/appenginePackage demo provides an app that shows how to use the github package on Google App Engine.
example/basicauthThe basicauth command demonstrates using the github.BasicAuthTransport, including handling two-factor authentication.
example/commitprThe commitpr command utilizes go-github as a CLI tool for pushing files to a branch and creating a pull request from it.
example/migrationsmigrations demonstrates the functionality of the user data migration API for the authenticated GitHub user and lists all the user migrations.
example/newrepoThe newrepo command utilizes go-github as a cli tool for creating new repositories.
example/simpleThe simple command demonstrates a simple functionality which prompts the user for a GitHub username and lists all the public organization memberships of the specified username.
example/tokenauthThe tokenauth command demonstrates using the oauth2.StaticTokenSource.
example/topicsThe simple command demonstrates the functionality that prompts the user for a GitHub topic and lists all the entities that are related to the specified topic or subject.
Version
v39.2.0 (latest)
Published
Oct 12, 2021
Platform
linux/amd64
Last checked
5 hours ago

Tools for package owners.