Documentation ¶
Index ¶
- func BinaryToTerm(data []byte) (interface{}, error)
- func TermToBinary(term interface{}, compressed int) ([]byte, error)
- type InputError
- type OtpErlangAtom
- type OtpErlangAtomCacheRef
- type OtpErlangAtomUTF8
- type OtpErlangBinary
- type OtpErlangFunction
- type OtpErlangList
- type OtpErlangMap
- type OtpErlangPid
- type OtpErlangPort
- type OtpErlangReference
- type OtpErlangTuple
- type OutputError
- type ParseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinaryToTerm ¶
BinaryToTerm decodes the Erlang Binary Term Format into Go types
func TermToBinary ¶
TermToBinary encodes Go types into the Erlang Binary Term Format
Types ¶
type InputError ¶
type InputError struct {
// contains filtered or unexported fields
}
InputError describes problems with function input parameters
func (*InputError) Error ¶
func (e *InputError) Error() string
type OtpErlangAtomCacheRef ¶
type OtpErlangAtomCacheRef uint8
OtpErlangAtomCacheRef represents ATOM_CACHE_REF
type OtpErlangAtomUTF8 ¶
type OtpErlangAtomUTF8 string
OtpErlangAtomUTF8 represents SMALL_ATOM_UTF8_EXT or ATOM_UTF8_EXT
type OtpErlangBinary ¶
OtpErlangBinary represents BIT_BINARY_EXT or BINARY_EXT
type OtpErlangFunction ¶
OtpErlangFunction represents EXPORT_EXT, FUN_EXT or NEW_FUN_EXT
type OtpErlangList ¶
type OtpErlangList struct { Value []interface{} Improper bool }
OtpErlangList represents NIL_EXT or LIST_EXT
type OtpErlangPid ¶
OtpErlangPid represents NEW_PID_EXT or PID_EXT
type OtpErlangPort ¶
OtpErlangPort represents NEW_PORT_EXT or PORT_EXT
type OtpErlangReference ¶
OtpErlangReference represents NEWER_REFERENCE_EXT, REFERENCE_EXT or NEW_REFERENCE_EXT
type OtpErlangTuple ¶
type OtpErlangTuple []interface{}
OtpErlangTuple represents SMALL_TUPLE_EXT or LARGE_TUPLE_EXT
type OutputError ¶
type OutputError struct {
// contains filtered or unexported fields
}
OutputError describes problems with creating function output data
func (*OutputError) Error ¶
func (e *OutputError) Error() string
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
ParseError provides specific parsing failure information
func (*ParseError) Error ¶
func (e *ParseError) Error() string