Open rohit-zenda opened 2 years ago
Raised a PR here: https://github.com/yerden/go-util/pull/3
At least one problem is in .../encoding/bcd.go line 38: , err := dec.Decode(dst, src) correct is: , err := dec.Decode(dst, src[:read]) Maybe there are other similar problems. I assume that BCD/binary encoding were so far not really used with this library.
At least one problem is in .../encoding/bcd.go line 38: , err := dec.Decode(dst, src) correct is: , err := dec.Decode(dst, src[:read]) Maybe there are other similar problems. I assume that BCD/binary encoding were so far not really used with this library.
I guess this also solves the problem at hand. Thanks @inbotur.
The test snippet showing this failure is as follows -