go-cdb

go-cdb is a pure 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.

Installation

Assuming you have a working Go environment, installation is simply:

go get github.com/jbarham/go-cdb

The package documentation can be viewed online at
http://gopkgdoc.appspot.com/pkg/github.com/jbarham/go-cdb
or on the command line by running go doc github.com/jbarham/go-cdb.

The included self-test program cdb_test.go illustrates usage of the package.

Utilities

The go-cdb package includes ports of the programs cdbdump and cdbmake from
the original implementation.

Fork allmark on GitHub