fix(docs): fix libgit2 version in examples

git2go v34 goes with libgit2 v1.5
This commit is contained in:
otherpaco 2022-10-06 22:34:03 +02:00 committed by GitHub
parent 4b14d29c20
commit 75b45f6923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ Due to the fact that Go 1.11 module versions have semantic meaning and don't nec
| 0.28 | v28 | | 0.28 | v28 |
| 0.27 | v27 | | 0.27 | v27 |
You can import them in your project with the version's major number as a suffix. For example, if you have libgit2 v1.2 installed, you'd import git2go v34 with: You can import them in your project with the version's major number as a suffix. For example, if you have libgit2 v1.5 installed, you'd import git2go v34 with:
```sh ```sh
go get github.com/libgit2/git2go/v34 go get github.com/libgit2/git2go/v34
@ -47,7 +47,7 @@ This project wraps the functionality provided by libgit2. If you're using a vers
### Versioned branch, dynamic linking ### Versioned branch, dynamic linking
When linking dynamically against a released version of libgit2, install it via your system's package manager. CGo will take care of finding its pkg-config file and set up the linking. Import via Go modules, e.g. to work against libgit2 v1.2 When linking dynamically against a released version of libgit2, install it via your system's package manager. CGo will take care of finding its pkg-config file and set up the linking. Import via Go modules, e.g. to work against libgit2 v1.5
```go ```go
import "github.com/libgit2/git2go/v34" import "github.com/libgit2/git2go/v34"