-type NewsPath struct {
- Paths []string
-}
-
-func (np *NewsPath) Payload() []byte {
- var out []byte
-
- count := make([]byte, 2)
- binary.BigEndian.PutUint16(count, uint16(len(np.Paths)))
-
- out = append(out, count...)
- for _, p := range np.Paths {
- pLen := byte(len(p))
- out = append(out, []byte{0, 0}...) // what is this?
- out = append(out, pLen)
- out = append(out, []byte(p)...)
- }
-
- return out
-}
+//type NewsPath struct {
+// Paths []string
+//}
+//
+//func (np *NewsPath) Payload() []byte {
+// var out []byte
+//
+// count := make([]byte, 2)
+// binary.BigEndian.PutUint16(count, uint16(len(np.Paths)))
+//
+// out = append(out, count...)
+// for _, p := range np.Paths {
+// pLen := byte(len(p))
+// out = append(out, []byte{0, 0}...) // what is this?
+// out = append(out, pLen)
+// out = append(out, []byte(p)...)
+// }
+//
+// return out
+//}