Pure Go implementation of D. J. Bernstein's cdb constant database library.
This is a Go package to read and write cdb ("constant database") files.
The cdb file format is a machine-independent format with the following features:
See the original cdb specification and C implementation by D. J. Bernstein at http://cr.yp.to/cdb.html.
Assuming you have a working Go environment, installation is simply:
go get github.com/jbarham/cdb
The package documentation can be viewed online at https://pkg.go.dev/github.com/jbarham/cdb or on the command line by running
go doc github.com/jbarham/cdb.
The included self-test program
cdb_test.goillustrates usage of the package.
The cdb package includes ports of the programs
cdbmakefrom the original implementation.