Just a small example how server receiving UDP packets can be implemented in Go.
To send to it nc can be used
nc
echo -n "some string" | nc -4 -u -w 0 localhost 30000
Sending stop will make the program exit.
stop