Documentation
¶
Index ¶
- Variables
- func AppendBytes(b []byte, value []byte) []byte
- func AppendInt(b []byte, v int64) []byte
- func AppendStr(b []byte, s string) []byte
- func FreeCtx(ctx *Context)
- func MarshalCtx(ctx *Context, v any) error
- type Context
- type IsZeroValue
- type Marshaler
- type UnsupportedInterfaceTypeError
- type UnsupportedTypeAsMapKeyError
- type UnsupportedTypeError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilPtr = errors.New("bencode: bencode doesn't have a nil type, nil ptr can't be encoded")
Functions ¶
func AppendBytes ¶ added in v0.0.13
func MarshalCtx ¶ added in v0.0.8
Types ¶
type IsZeroValue ¶ added in v0.0.4
type IsZeroValue interface {
IsZeroBencodeValue() bool
}
type UnsupportedInterfaceTypeError ¶
func (*UnsupportedInterfaceTypeError) Error ¶
func (e *UnsupportedInterfaceTypeError) Error() string
type UnsupportedTypeAsMapKeyError ¶
func (*UnsupportedTypeAsMapKeyError) Error ¶
func (e *UnsupportedTypeAsMapKeyError) Error() string
type UnsupportedTypeError ¶
func (*UnsupportedTypeError) Error ¶
func (e *UnsupportedTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.