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
Thank you for helping! BTW I'm the other person but I couldn't reply from
my Protonmail account.
On Wednesday, March 3, 2021 at 3:05:48 PM UTC+1 Brian Candler wrote:
> "The go command's download behavior may be configured using GOPROXY,
> GOSUMDB, GOPRIVATE, and other environment variables. See