[go-nuts] Read N bytes from a TLS stream and block the caller while still respecting the deadline

2021-11-30 Thread LastName Almaember
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

[go-nuts] Re: Disable the module checksum and proxy

2021-03-03 Thread LastName Almaember
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