cosmetic: move UDPPacket type from types.go to router.go

This commit is contained in:
Matthias Radestock committed 2015-01-20 21:14:45 +00:00
1 parent e171088fac
commit 2102fc8529
3 files changed
+10 -14

No files matched your search

-4
View File
@@ -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 {