You are using empty []byte slice and there is no space for ReadFromUDP to read data
[]byte
ReadFromUDP
You should allocate buffer with enough space
buffer := make([]byte, 1024)