You don't need to have access to Go's website to read the documentation. The distributions include a tool called godoc
which can start a local HTTP server and host a similar website you see on Go's home page. You can start it locally by running the following command:
godoc -http=:6060
Then visit the following local URL in your browser:
http://localhost:6060/
Documentation of UDPConn.ReadMsgUDP()
:
http://localhost:6060/pkg/net/#UDPConn.ReadMsgUDP
Quoting the relevant part:
func (c *UDPConn) ReadMsgUDP(b, oob []byte) (n, oobn, flags int, addr *UDPAddr, err error)
ReadMsgUDP reads a packet from c, copying the payload into b and the associated out-of-band data into oob. It returns the number of bytes copied into b, the number of bytes copied into oob, the flags that were set on the packet and the source address of the packet.