Closed l1351868270 closed 2 years ago
bolt generated key types are uint64s, so you need to change you type to uint/uint64 in your struct
type KeyTest struct {
Key uint `boltholdKey:"Key"`
Value string
}
Alternately, you could use a more flexible encoder than gob. For example, if you use JSON, it may be able to make that conversion.
I want to use the autoincrementing integer. So i write the unittest in "foreach_test.go":
But, it has a error like this
ps: It is also incorrect when i use the key, when it's type is uint64. The error is same.