Introduced in GitHub CLI 2.0, extensions allow developers to add new features by writing small Go programs. To make it easier to create extensions, GitHub is now releasing a new library, go-gh. Additionally, the latest version of GitHub CLI introduces two new commands to search and browse the catalog of available extensions.
Written in Go, the go-gh library contains portions of the code that is used in GitHub CLI itself and that GitHub hopes will help developers write high quality extensions in less time.