Documentation ¶ Index ¶ type Type func (t Type) String() string type Value func MakeValue(t Type, length int, val interface{}) (Value, error) func (s Value) Boolean() bool func (s Value) Integer() int64 func (s Value) Length() int func (s Value) List() []Value func (s Value) MarshalJSON() ([]byte, error) func (s Value) OctetString() []byte func (s Value) Type() Type func (s Value) Unsigned() uint64 func (s Value) Val() interface{} Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Type ¶ type Type int const ( Invalid Type = iota OctetString Boolean Integer Unsigned List EndOfSmlMsg ) func (Type) String ¶ func (t Type) String() string type Value ¶ type Value struct { // contains filtered or unexported fields } func MakeValue ¶ func MakeValue(t Type, length int, val interface{}) (Value, error) func (Value) Boolean ¶ func (s Value) Boolean() bool func (Value) Integer ¶ func (s Value) Integer() int64 func (Value) Length ¶ func (s Value) Length() int func (Value) List ¶ func (s Value) List() []Value func (Value) MarshalJSON ¶ func (s Value) MarshalJSON() ([]byte, error) func (Value) OctetString ¶ func (s Value) OctetString() []byte func (Value) Type ¶ func (s Value) Type() Type func (Value) Unsigned ¶ func (s Value) Unsigned() uint64 func (Value) Val ¶ func (s Value) Val() interface{} Source Files ¶ View all Source files type.govalue.go Click to show internal directories. Click to hide internal directories.