On Tue Nov 30, 2021 at 11:20 PM CET, LastName Almaember wrote:
> It's meant to first read a nine-byte header (8 bits of a type field
> followed by a 64 bit length). In theory, it should work fine, but it
> always immediately returns InputTooShort (right at the first check).
io.Readers returns up t
Hello,
I have this function:
// Read a message from a stream
func ReadFromStream(rd io.Reader) (Message, error) {
result := Message{}
// read the first nine bytes only
// (mtype + length)
buf := make([]byte, 9)
read, err := rd.Read(buf)
if err != nil {
return result, err
}
if read < 9 {
// we didn
On Sat, Nov 27, 2021 at 10:53 AM Sankar wrote:
> Hi
>
> I have a database that has a column `2xxCode`. This database is part of a
> legacy system and I cannot make changes to this, as there are multiple
> applications that depend on this, and some of the applications are
> unchangeable.
>
> Now I