Documentation ¶
Index ¶
- Constants
- Variables
- func NewInvalidTypesError(t reflect.Type, term Term) error
- func StringTerm(t Term) (s string, ok bool)
- func TermIntoStruct(term Term, dest interface{}) error
- type Atom
- type Context
- type ErrUnknownTerm
- type ErrUnknownType
- type Export
- type Function
- type InvalidStructKeyError
- type List
- type Map
- type Pid
- type Port
- type Ref
- type StructPopulatorError
- type Term
- type Tuple
Constants ¶
View Source
const ( // Erlang distribution header EtDist = byte('D') )
View Source
const ( // Erlang external term format version EtVersion = byte(131) )
Variables ¶
View Source
var Encoding discord.Encoding = decoder{}
View Source
var (
ErrFloatScan = fmt.Errorf("read: sscanf float")
)
View Source
var (
MapType = reflect.TypeOf(Map{})
)
Functions ¶
func StringTerm ¶
func TermIntoStruct ¶
Types ¶
type Context ¶
type Context struct { ConvertBinaryToString bool ConvertAtomsToBinary bool // contains filtered or unexported fields }
func (*Context) NewGenDecoder ¶
type ErrUnknownTerm ¶
type ErrUnknownTerm struct {
// contains filtered or unexported fields
}
func (*ErrUnknownTerm) Error ¶
func (e *ErrUnknownTerm) Error() string
type ErrUnknownType ¶
type ErrUnknownType struct {
// contains filtered or unexported fields
}
func (*ErrUnknownType) Error ¶
func (e *ErrUnknownType) Error() string
type InvalidStructKeyError ¶
type InvalidStructKeyError struct { Term Term errors.StackTrace }
func (*InvalidStructKeyError) Error ¶
func (s *InvalidStructKeyError) Error() string
type Map ¶
func (Map) MarshalJSON ¶
type StructPopulatorError ¶
func (*StructPopulatorError) Error ¶
func (s *StructPopulatorError) Error() string
Click to show internal directories.
Click to hide internal directories.