erlang

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinaryToTerm

func BinaryToTerm(data []byte) (interface{}, error)

BinaryToTerm decodes the Erlang Binary Term Format into Go types

func TermToBinary

func TermToBinary(term interface{}, compressed int) ([]byte, error)

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 OtpErlangAtom

type OtpErlangAtom string

OtpErlangAtom represents SMALL_ATOM_EXT or ATOM_EXT

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

type OtpErlangBinary struct {
	Value []byte
	Bits  uint8
}

OtpErlangBinary represents BIT_BINARY_EXT or BINARY_EXT

type OtpErlangFunction

type OtpErlangFunction struct {
	Tag   uint8
	Value []byte
}

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 OtpErlangMap

type OtpErlangMap map[interface{}]interface{}

OtpErlangMap represents MAP_EXT

type OtpErlangPid

type OtpErlangPid struct {
	NodeTag  uint8
	Node     []byte
	ID       []byte
	Serial   []byte
	Creation []byte
}

OtpErlangPid represents NEW_PID_EXT or PID_EXT

type OtpErlangPort

type OtpErlangPort struct {
	NodeTag  uint8
	Node     []byte
	ID       []byte
	Creation []byte
}

OtpErlangPort represents NEW_PORT_EXT or PORT_EXT

type OtpErlangReference

type OtpErlangReference struct {
	NodeTag  uint8
	Node     []byte
	ID       []byte
	Creation []byte
}

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

Jump to

Keyboard shortcuts

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