| 98 | } |
| 99 | |
| 100 | type udpServer struct { |
| 101 | addr string |
| 102 | conn *net.UDPConn |
| 103 | ctx context.Context |
| 104 | cancel context.CancelFunc |
| 105 | } |
| 106 | |
| 107 | func (u *udpServer) Run() error { |
| 108 | addr, err := net.ResolveUDPAddr("udp", u.addr) |
nothing calls this directly
no outgoing calls
no test coverage detected