levigo is a Go wrapper for LevelDB.
Questions answered at golang-nuts@googlegroups.com
.
You'll need the a shared library build of LevelDB installed on your machine. Right now, that means applying my latest patch for LevelDB's Makefile.
Now, suppose you built the shared LevelDB library in /path/to/lib and the headers were installed in /path/to/include. In your clone of levigo, you'll run:
CGO_CFLAGS="-I/path/to/leveldb/include" CGO_LDFLAGS="-L/path/to/lib" make install
and there you go.
Comparators must be written in C in your own library.