Skip to content

Commit

Permalink
mdbx_version description string
Browse files Browse the repository at this point in the history
  • Loading branch information
battlmonstr committed Jan 8, 2024
1 parent e364f0a commit 56f9f1c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mdbx/mdbx.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,11 @@ CGO_CFLAGS="${CGO_CFLAGS} -DMDBX_DEBUG=1 -DMDBX_FORCE_ASSERTIONS=1 -v" go run ./
// verstr := C.mdbx_version(&maj, &min, &pat)
// return C.GoString(verstr)
//}

// Version returns the C library version string in git describe format.
//
// See mdbx_version.
func Version() string {
version := &C.mdbx_version

Check failure on line 170 in mdbx/mdbx.go

View workflow job for this annotation

GitHub Actions / win (windows-2022)

could not determine kind of name for C.mdbx_version

Check failure on line 170 in mdbx/mdbx.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-20.04)

could not determine kind of name for C.mdbx_version
return C.GoString(version.git.describe)
}

0 comments on commit 56f9f1c

Please sign in to comment.