fork from code.google.com/p/leveldb-go