zippoxer / bow

Bow - Minimal embedded database powered by Badger
MIT License
223 stars 15 forks source link

Using int as key fails #7

Closed vishr closed 5 years ago

vishr commented 5 years ago

If your key is int or uint it fails in Put() with the following error binary.Write failed: binary.Write: invalid type int (https://play.golang.org/p/5U3qCrozRNJ) It is because encoding/binary is for fixed size data.

zippoxer commented 5 years ago

Fixed with commit 7c6a3dc6e9aef7b718382acdbadb86991ed77ab8. Thanks for reporting this 👍