cosmetic: move UDPPacket type from types.go to router.go
This commit is contained in:
1 parent
e171088fac
commit
2102fc8529
3 files changed
+10
-14
No files matched your search
@@ -50,10 +50,6 @@ func (pde PacketDecodingError) Error() string {
|
||||
return fmt.Sprint("Failed to decode packet: ", pde.Desc)
|
||||
}
|
||||
|
||||
func (packet UDPPacket) String() string {
|
||||
return fmt.Sprintf("UDP Packet\n name: %s\n sender: %v\n payload: % X", packet.Name, packet.Sender, packet.Packet)
|
||||
}
|
||||
|
||||
func Concat(elems ...[]byte) []byte {
|
||||
res := []byte{}
|
||||
for _, e := range elems {
|
||||
|
||||
Reference in new issue
Block a user