database/leveldb: support go generate