Documentation ¶ Index ¶ func Unmarshal(data []byte, v any) error type Context type Decoder func CompileToGetDecoder(rt reflect.Type) (Decoder, error) type Unmarshaler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Unmarshal ¶ func Unmarshal(data []byte, v any) error Types ¶ type Context ¶ type Context struct { Buf []byte } type Decoder ¶ type Decoder interface { Decode(ctx *Context, cursor int, depth int64, rv reflect.Value) (int, error) } func CompileToGetDecoder ¶ func CompileToGetDecoder(rt reflect.Type) (Decoder, error) type Unmarshaler ¶ type Unmarshaler interface { UnmarshalBencode([]byte) error } Source Files ¶ View all Source files array.gobool.gobytes.gocompile.gocontext.goint.gointerface.goinvalid.gomap.goptr.goslice.gostring.gostruct.gosyntax.gotype.gouint.gounmarshal.gounmarshaler.go Click to show internal directories. Click to hide internal directories.