Closed vishr closed 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.
int
uint
Put()
binary.Write failed: binary.Write: invalid type int
Fixed with commit 7c6a3dc6e9aef7b718382acdbadb86991ed77ab8. Thanks for reporting this 👍
If your key is
int
oruint
it fails inPut()
with the following errorbinary.Write failed: binary.Write: invalid type int
(https://play.golang.org/p/5U3qCrozRNJ) It is because encoding/binary is for fixed size data.