encoder

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v any) ([]byte, error)

Types

type Context

type Context struct {
	Buf []byte
	// contains filtered or unexported fields
}

type Marshaler

type Marshaler interface {
	MarshalBencode() ([]byte, error)
}

type UnsupportedInterfaceTypeError

type UnsupportedInterfaceTypeError struct {
	Type reflect.Type
}

func (*UnsupportedInterfaceTypeError) Error

type UnsupportedTypeAsMapKeyError

type UnsupportedTypeAsMapKeyError struct {
	Type reflect.Type
}

func (*UnsupportedTypeAsMapKeyError) Error

type UnsupportedTypeError

type UnsupportedTypeError struct {
	Type reflect.Type
}

func (*UnsupportedTypeError) Error

func (e *UnsupportedTypeError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL