Installation
Prerequisites
- Go 1.24 or later - nanogit requires Go 1.24+ for building and using the library
- Git (for development) - Only needed if you're contributing to nanogit
Installing nanogit
Latest Version
To install the latest version of nanogit:
bash
go get github.com/grafana/nanogit@latestSpecific Version
To install a specific version:
bash
go get github.com/grafana/nanogit@v0.x.xReplace v0.x.x with the version you want to install. See all available versions on the releases page.
Verifying Installation
After installation, verify that nanogit is available in your Go module:
bash
go list -m github.com/grafana/nanogitThis should display the installed version.
Next Steps
- Quick Start Guide - Get started with basic usage
- API Reference (GoDoc) - Explore the full API
- Examples - See working code examples
