1 2 3 4 5 6 7 8 9 10 11 12 13
package struc import ( "io" "reflect" ) type Packer interface { Pack(buf []byte, val reflect.Value, options *Options) (int, error) Unpack(r io.Reader, val reflect.Value, options *Options) error Sizeof(val reflect.Value, options *Options) int String() string }