I am using Go to read a reply from a sever using net.Dial. The code below works but the server sends back 2 replys. To read the second reply I would have to read the reply again. Is there an easier way to discard the first reply and grab the second reply? Regards
_, err = conn.Write([]byte(login))
reply := make([]byte, 5000)
_, err = conn.Read(reply)
fmt.Print(string(reply))