Documentation ¶
Overview ¶
Handles values and conversion from Go's native scalar values
Index ¶
- Constants
- func CompareVals(a []Value, b []Value) int
- func ConvOneOf(f []Format, val interface{}) (Value, Format, error)
- func Equal(a Value, b Value) bool
- func EqualVals(a []Value, b []Value) bool
- func ForEach(v Value, f Eacher)
- func Reduce(v Value, initial interface{}, f Reducer) interface{}
- type Any
- type Binary
- type BinaryList
- type Bits
- type BitsList
- type Bool
- type BoolList
- type Comparable
- type Decimal64
- type Decimal64List
- type Eacher
- type Enum
- type EnumList
- func (x EnumList) Add(e string) EnumList
- func (e EnumList) ById(id int) (Enum, bool)
- func (e EnumList) ByLabel(label string) (Enum, bool)
- func (EnumList) Format() Format
- func (e EnumList) Ids() []int
- func (x EnumList) Item(i int) Value
- func (e EnumList) Labels() []string
- func (x EnumList) Len() int
- func (e EnumList) NextId() int
- func (e EnumList) String() string
- func (x EnumList) Value() interface{}
- type Format
- type IdentRef
- type IdentRefList
- type Int16
- type Int16List
- type Int32
- type Int32List
- type Int64
- type Int64List
- type Int64able
- type Int8
- type Int8List
- type Listable
- type NotEmptyType
- type Reducer
- type String
- type StringList
- type UInt16
- type UInt16List
- type UInt32
- type UInt32List
- type UInt64
- type UInt64List
- type UInt8
- type UInt8List
- type Value
Constants ¶
View Source
const NotEmpty = NotEmptyType("<not empty>")
Variables ¶
This section is empty.
Functions ¶
func CompareVals ¶
Types ¶
type BinaryList ¶
type BinaryList [][]byte
func (BinaryList) Compare ¶
func (x BinaryList) Compare(y Comparable) int
func (BinaryList) Format ¶
func (BinaryList) Format() Format
func (BinaryList) String ¶
func (x BinaryList) String() string
func (BinaryList) Value ¶
func (x BinaryList) Value() interface{}
type Comparable ¶
type Comparable interface { Value Compare(Comparable) int }
type Decimal64 ¶
type Decimal64 float64
func (Decimal64) Compare ¶
func (x Decimal64) Compare(b Comparable) int
type Decimal64List ¶
type Decimal64List []float64
func (Decimal64List) Format ¶
func (Decimal64List) Format() Format
func (Decimal64List) Item ¶
func (x Decimal64List) Item(i int) Value
func (Decimal64List) Len ¶
func (x Decimal64List) Len() int
func (Decimal64List) String ¶
func (x Decimal64List) String() string
func (Decimal64List) Value ¶
func (x Decimal64List) Value() interface{}
type Format ¶
type Format int
const ( FmtBinaryList Format = iota + 1025 FmtBitsList //1026 FmtBoolList //1027 FmtDecimal64List //1028 FmtEmptyList //1029 FmtEnumList //1030 FmtIdentityRefList //1031 FmtInstanceRefList //1032 FmtInt8List //1033 FmtInt16List //1034 FmtInt32List //1035 FmtInt64List //1036 FmtLeafRefList //1037 FmtStringList //1038 FmtUInt8List //1039 FmtUInt16List //1040 FmtUInt32List //1041 FmtUInt64List //1042 FmtUnionList //1043 FmtAnyList //1044 )
func TypeAsFormat ¶
type IdentRefList ¶
type IdentRefList []IdentRef
func (IdentRefList) Format ¶
func (IdentRefList) Format() Format
func (IdentRefList) Item ¶
func (x IdentRefList) Item(i int) Value
func (IdentRefList) Labels ¶
func (e IdentRefList) Labels() []string
func (IdentRefList) Len ¶
func (x IdentRefList) Len() int
func (IdentRefList) String ¶
func (e IdentRefList) String() string
func (IdentRefList) Value ¶
func (x IdentRefList) Value() interface{}
type NotEmptyType ¶
type NotEmptyType string
func (NotEmptyType) Format ¶
func (NotEmptyType) Format() Format
func (NotEmptyType) String ¶
func (NotEmptyType) String() string
func (NotEmptyType) Value ¶
func (NotEmptyType) Value() interface{}
type StringList ¶
type StringList []string
func (StringList) Format ¶
func (StringList) Format() Format
func (StringList) Item ¶
func (x StringList) Item(i int) Value
func (StringList) Len ¶
func (x StringList) Len() int
func (StringList) String ¶
func (x StringList) String() string
func (StringList) Value ¶
func (x StringList) Value() interface{}
type UInt16List ¶
type UInt16List []uint16
func (UInt16List) Format ¶
func (UInt16List) Format() Format
func (UInt16List) Item ¶
func (x UInt16List) Item(i int) Value
func (UInt16List) Len ¶
func (x UInt16List) Len() int
func (UInt16List) String ¶
func (x UInt16List) String() string
func (UInt16List) Value ¶
func (x UInt16List) Value() interface{}
type UInt32List ¶
type UInt32List []uint
func (UInt32List) Format ¶
func (UInt32List) Format() Format
func (UInt32List) Item ¶
func (x UInt32List) Item(i int) Value
func (UInt32List) Len ¶
func (x UInt32List) Len() int
func (UInt32List) String ¶
func (x UInt32List) String() string
func (UInt32List) Value ¶
func (x UInt32List) Value() interface{}
type UInt64List ¶
type UInt64List []uint64
func (UInt64List) Format ¶
func (UInt64List) Format() Format
func (UInt64List) Item ¶
func (x UInt64List) Item(i int) Value
func (UInt64List) Len ¶
func (x UInt64List) Len() int
func (UInt64List) String ¶
func (x UInt64List) String() string
func (UInt64List) Value ¶
func (x UInt64List) Value() interface{}
Click to show internal directories.
Click to hide internal directories.