package srt import ( ) type Packet struct { raw []byte } func MarshallPacket(packet *Packet) ([]byte, error) { return packet.raw, nil } func ParsePacket(buffer []byte) (*Packet, error) { return &Packet{buffer}, nil }