Registry / utility / libgit2-git2go-v31

libgit2-git2go-v31

JSON →
library31.7.9gogounverified

Go bindings for libgit2, providing access to Git repository operations.

go get github.com/libgit2/git2go/v31
INSTALL
IMPORT
SIG · LIBGIT2-GIT2GO-V31
L
libgit2-git2go-v31
utilitygov31.7.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

git2go
github.com/libgit2/git2go/v31

Open a Git repository and print its path.

package main import ( "fmt" git "github.com/libgit2/git2go/v31" ) func main() { repo, err := git.OpenRepository(".") if err != nil { panic(err) } fmt.Println("Repository opened:", repo.Path()) }
Debug
Known issues
gotchaRequires libgit2 system library to be installed.
fix
Install libgit2 development headers (e.g., apt-get install libgit2-dev).
affects: all
Upgrade
Version history
31.7.9latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
libgit2-git2go-v31 — go get libgit2-git2go-v31 · libregistry