Documentation ¶
Overview ¶
Code below generated from scalar_gen.go.tmpl
Index ¶
- Variables
- type Any
- func (s Any) ScalarActual() any
- func (s Any) ScalarDescription() string
- func (s Any) ScalarDisplayFormat() DisplayFormat
- func (s Any) ScalarIsGap() bool
- func (s Any) ScalarSym() any
- func (s Any) ScalarValue() any
- func (s Any) SymAny() any
- func (s Any) SymBigInt() *big.Int
- func (s Any) SymBitBuf() bitio.ReaderAtSeeker
- func (s Any) SymBool() bool
- func (s Any) SymFlt() float64
- func (s Any) SymSint() int64
- func (s Any) SymStr() string
- func (s Any) SymUint() uint64
- func (s Any) TrySymAny() (any, bool)
- func (s Any) TrySymBigInt() (*big.Int, bool)
- func (s Any) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
- func (s Any) TrySymBool() (bool, bool)
- func (s Any) TrySymFlt() (float64, bool)
- func (s Any) TrySymSint() (int64, bool)
- func (s Any) TrySymStr() (string, bool)
- func (s Any) TrySymUint() (uint64, bool)
- type AnyActualFn
- type AnyDescriptionFn
- type AnyFn
- type AnyMapper
- type AnySymFn
- type BigInt
- func (s BigInt) ScalarActual() any
- func (s BigInt) ScalarDescription() string
- func (s BigInt) ScalarDisplayFormat() DisplayFormat
- func (s BigInt) ScalarIsGap() bool
- func (s BigInt) ScalarSym() any
- func (s BigInt) ScalarValue() any
- func (s BigInt) SymAny() any
- func (s BigInt) SymBigInt() *big.Int
- func (s BigInt) SymBitBuf() bitio.ReaderAtSeeker
- func (s BigInt) SymBool() bool
- func (s BigInt) SymFlt() float64
- func (s BigInt) SymSint() int64
- func (s BigInt) SymStr() string
- func (s BigInt) SymUint() uint64
- func (s BigInt) TrySymAny() (any, bool)
- func (s BigInt) TrySymBigInt() (*big.Int, bool)
- func (s BigInt) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
- func (s BigInt) TrySymBool() (bool, bool)
- func (s BigInt) TrySymFlt() (float64, bool)
- func (s BigInt) TrySymSint() (int64, bool)
- func (s BigInt) TrySymStr() (string, bool)
- func (s BigInt) TrySymUint() (uint64, bool)
- type BigIntActualFn
- type BigIntDescriptionFn
- type BigIntFn
- type BigIntMapper
- type BigIntSymFn
- type BitBuf
- func (s BitBuf) ScalarActual() any
- func (s BitBuf) ScalarDescription() string
- func (s BitBuf) ScalarDisplayFormat() DisplayFormat
- func (s BitBuf) ScalarIsGap() bool
- func (s BitBuf) ScalarSym() any
- func (s BitBuf) ScalarValue() any
- func (s BitBuf) SymAny() any
- func (s BitBuf) SymBigInt() *big.Int
- func (s BitBuf) SymBitBuf() bitio.ReaderAtSeeker
- func (s BitBuf) SymBool() bool
- func (s BitBuf) SymFlt() float64
- func (s BitBuf) SymSint() int64
- func (s BitBuf) SymStr() string
- func (s BitBuf) SymUint() uint64
- func (s BitBuf) TrySymAny() (any, bool)
- func (s BitBuf) TrySymBigInt() (*big.Int, bool)
- func (s BitBuf) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
- func (s BitBuf) TrySymBool() (bool, bool)
- func (s BitBuf) TrySymFlt() (float64, bool)
- func (s BitBuf) TrySymSint() (int64, bool)
- func (s BitBuf) TrySymStr() (string, bool)
- func (s BitBuf) TrySymUint() (uint64, bool)
- type BitBufActualFn
- type BitBufDescriptionFn
- type BitBufFn
- type BitBufMapper
- type BitBufSymFn
- type Bool
- func (s Bool) ScalarActual() any
- func (s Bool) ScalarDescription() string
- func (s Bool) ScalarDisplayFormat() DisplayFormat
- func (s Bool) ScalarIsGap() bool
- func (s Bool) ScalarSym() any
- func (s Bool) ScalarValue() any
- func (s Bool) SymAny() any
- func (s Bool) SymBigInt() *big.Int
- func (s Bool) SymBitBuf() bitio.ReaderAtSeeker
- func (s Bool) SymBool() bool
- func (s Bool) SymFlt() float64
- func (s Bool) SymSint() int64
- func (s Bool) SymStr() string
- func (s Bool) SymUint() uint64
- func (s Bool) TrySymAny() (any, bool)
- func (s Bool) TrySymBigInt() (*big.Int, bool)
- func (s Bool) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
- func (s Bool) TrySymBool() (bool, bool)
- func (s Bool) TrySymFlt() (float64, bool)
- func (s Bool) TrySymSint() (int64, bool)
- func (s Bool) TrySymStr() (string, bool)
- func (s Bool) TrySymUint() (uint64, bool)
- type BoolActualFn
- type BoolDescriptionFn
- type BoolFn
- type BoolMap
- type BoolMapDescription
- type BoolMapSymBool
- type BoolMapSymFlt
- type BoolMapSymSint
- type BoolMapSymStr
- type BoolMapSymUint
- type BoolMapper
- type BoolSymFn
- type DisplayFormat
- type Flt
- func (s Flt) ScalarActual() any
- func (s Flt) ScalarDescription() string
- func (s Flt) ScalarDisplayFormat() DisplayFormat
- func (s Flt) ScalarIsGap() bool
- func (s Flt) ScalarSym() any
- func (s Flt) ScalarValue() any
- func (s Flt) SymAny() any
- func (s Flt) SymBigInt() *big.Int
- func (s Flt) SymBitBuf() bitio.ReaderAtSeeker
- func (s Flt) SymBool() bool
- func (s Flt) SymFlt() float64
- func (s Flt) SymSint() int64
- func (s Flt) SymStr() string
- func (s Flt) SymUint() uint64
- func (s Flt) TrySymAny() (any, bool)
- func (s Flt) TrySymBigInt() (*big.Int, bool)
- func (s Flt) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
- func (s Flt) TrySymBool() (bool, bool)
- func (s Flt) TrySymFlt() (float64, bool)
- func (s Flt) TrySymSint() (int64, bool)
- func (s Flt) TrySymStr() (string, bool)
- func (s Flt) TrySymUint() (uint64, bool)
- type FltActualFn
- type FltDescriptionFn
- type FltFn
- type FltMapper
- type FltSymFn
- type RawBytesMap
- type SRangeEntry
- type SRangeToScalar
- type Sint
- func (s Sint) ScalarActual() any
- func (s Sint) ScalarDescription() string
- func (s Sint) ScalarDisplayFormat() DisplayFormat
- func (s Sint) ScalarIsGap() bool
- func (s Sint) ScalarSym() any
- func (s Sint) ScalarValue() any
- func (s Sint) SymAny() any
- func (s Sint) SymBigInt() *big.Int
- func (s Sint) SymBitBuf() bitio.ReaderAtSeeker
- func (s Sint) SymBool() bool
- func (s Sint) SymFlt() float64
- func (s Sint) SymSint() int64
- func (s Sint) SymStr() string
- func (s Sint) SymUint() uint64
- func (s Sint) TrySymAny() (any, bool)
- func (s Sint) TrySymBigInt() (*big.Int, bool)
- func (s Sint) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
- func (s Sint) TrySymBool() (bool, bool)
- func (s Sint) TrySymFlt() (float64, bool)
- func (s Sint) TrySymSint() (int64, bool)
- func (s Sint) TrySymStr() (string, bool)
- func (s Sint) TrySymUint() (uint64, bool)
- type SintActualFn
- type SintDescriptionFn
- type SintFn
- type SintMap
- type SintMapDescription
- type SintMapSymBool
- type SintMapSymFlt
- type SintMapSymSint
- type SintMapSymStr
- type SintMapSymUint
- type SintMapper
- type SintSymFn
- type Str
- func (s Str) ScalarActual() any
- func (s Str) ScalarDescription() string
- func (s Str) ScalarDisplayFormat() DisplayFormat
- func (s Str) ScalarIsGap() bool
- func (s Str) ScalarSym() any
- func (s Str) ScalarValue() any
- func (s Str) SymAny() any
- func (s Str) SymBigInt() *big.Int
- func (s Str) SymBitBuf() bitio.ReaderAtSeeker
- func (s Str) SymBool() bool
- func (s Str) SymFlt() float64
- func (s Str) SymSint() int64
- func (s Str) SymStr() string
- func (s Str) SymUint() uint64
- func (s Str) TrySymAny() (any, bool)
- func (s Str) TrySymBigInt() (*big.Int, bool)
- func (s Str) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
- func (s Str) TrySymBool() (bool, bool)
- func (s Str) TrySymFlt() (float64, bool)
- func (s Str) TrySymSint() (int64, bool)
- func (s Str) TrySymStr() (string, bool)
- func (s Str) TrySymUint() (uint64, bool)
- type StrActualFn
- type StrDescriptionFn
- type StrFn
- type StrMap
- type StrMapDescription
- type StrMapSymBool
- type StrMapSymFlt
- type StrMapSymSint
- type StrMapSymStr
- type StrMapSymUint
- type StrMapper
- func StrActual(v string) StrMapper
- func StrDescription(v string) StrMapper
- func StrSym(v any) StrMapper
- func StrSymParseFloat(base int) StrMapper
- func StrSymParseInt(base int) StrMapper
- func StrSymParseUint(base int) StrMapper
- func TryStrSymParseFloat(base int) StrMapper
- func TryStrSymParseInt(base int) StrMapper
- func TryStrSymParseUint(base int) StrMapper
- type StrSymFn
- type URangeEntry
- type Uint
- func (s Uint) ScalarActual() any
- func (s Uint) ScalarDescription() string
- func (s Uint) ScalarDisplayFormat() DisplayFormat
- func (s Uint) ScalarIsGap() bool
- func (s Uint) ScalarSym() any
- func (s Uint) ScalarValue() any
- func (s Uint) SymAny() any
- func (s Uint) SymBigInt() *big.Int
- func (s Uint) SymBitBuf() bitio.ReaderAtSeeker
- func (s Uint) SymBool() bool
- func (s Uint) SymFlt() float64
- func (s Uint) SymSint() int64
- func (s Uint) SymStr() string
- func (s Uint) SymUint() uint64
- func (s Uint) TrySymAny() (any, bool)
- func (s Uint) TrySymBigInt() (*big.Int, bool)
- func (s Uint) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
- func (s Uint) TrySymBool() (bool, bool)
- func (s Uint) TrySymFlt() (float64, bool)
- func (s Uint) TrySymSint() (int64, bool)
- func (s Uint) TrySymStr() (string, bool)
- func (s Uint) TrySymUint() (uint64, bool)
- type UintActualFn
- type UintDescriptionFn
- type UintFn
- type UintMap
- type UintMapDescription
- type UintMapSymBool
- type UintMapSymFlt
- type UintMapSymSint
- type UintMapSymStr
- type UintMapSymUint
- type UintMapper
- type UintRangeToScalar
- type UintSymFn
Constants ¶
This section is empty.
Variables ¶
var ActualTrimSpace = StrActualFn(strings.TrimSpace)
var BigIntBin = BigIntFn(func(s BigInt) (BigInt, error) { s.DisplayFormat = NumberBinary; return s, nil })
var BigIntDec = BigIntFn(func(s BigInt) (BigInt, error) { s.DisplayFormat = NumberDecimal; return s, nil })
var BigIntHex = BigIntFn(func(s BigInt) (BigInt, error) { s.DisplayFormat = NumberHex; return s, nil })
var BigIntOct = BigIntFn(func(s BigInt) (BigInt, error) { s.DisplayFormat = NumberOctal; return s, nil })
var RawHex = BitBufFn(func(s BitBuf) (BitBuf, error) { return RawSym(s, -1, func(b []byte) string { return fmt.Sprintf("%x", b) }) })
var RawUUID = BitBufFn(func(s BitBuf) (BitBuf, error) { return RawSym(s, -1, func(b []byte) string { return fmt.Sprintf("%x-%x-%x-%x-%x", b[0:4], b[4:6], b[6:8], b[8:10], b[10:]) }) })
var SintBin = SintFn(func(s Sint) (Sint, error) { s.DisplayFormat = NumberBinary; return s, nil })
var SintDec = SintFn(func(s Sint) (Sint, error) { s.DisplayFormat = NumberDecimal; return s, nil })
var SintHex = SintFn(func(s Sint) (Sint, error) { s.DisplayFormat = NumberHex; return s, nil })
var SintOct = SintFn(func(s Sint) (Sint, error) { s.DisplayFormat = NumberOctal; return s, nil })
var UintBin = UintFn(func(s Uint) (Uint, error) { s.DisplayFormat = NumberBinary; return s, nil })
var UintDec = UintFn(func(s Uint) (Uint, error) { s.DisplayFormat = NumberDecimal; return s, nil })
var UintHex = UintFn(func(s Uint) (Uint, error) { s.DisplayFormat = NumberHex; return s, nil })
var UintOct = UintFn(func(s Uint) (Uint, error) { s.DisplayFormat = NumberOctal; return s, nil })
Functions ¶
This section is empty.
Types ¶
type Any ¶ added in v0.2.0
Type Any does not use embedding for common fields as it works poorly with struct literals
func (Any) ScalarDescription ¶ added in v0.2.0
func (Any) ScalarDisplayFormat ¶ added in v0.2.0
func (s Any) ScalarDisplayFormat() DisplayFormat
func (Any) ScalarIsGap ¶ added in v0.6.0
func (Any) ScalarValue ¶ added in v0.2.0
func (Any) SymBitBuf ¶ added in v0.2.0
func (s Any) SymBitBuf() bitio.ReaderAtSeeker
SymBitBuf asserts symbolic value is a BitBuf and returns it
func (Any) TrySymAny ¶ added in v0.2.0
TrySymAny try assert symbolic value is a Any and return result
func (Any) TrySymBigInt ¶ added in v0.2.0
TrySymBigInt try assert symbolic value is a BigInt and return result
func (Any) TrySymBitBuf ¶ added in v0.2.0
func (s Any) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
TrySymBitBuf try assert symbolic value is a BitBuf and return result
func (Any) TrySymBool ¶ added in v0.2.0
TrySymBool try assert symbolic value is a Bool and return result
func (Any) TrySymFlt ¶ added in v0.2.0
TrySymFlt try assert symbolic value is a Flt and return result
func (Any) TrySymSint ¶ added in v0.2.0
TrySymSint try assert symbolic value is a Sint and return result
func (Any) TrySymStr ¶ added in v0.2.0
TrySymStr try assert symbolic value is a Str and return result
func (Any) TrySymUint ¶ added in v0.2.0
TrySymUint try assert symbolic value is a Uint and return result
type AnyActualFn ¶ added in v0.2.0
AnyActualFn map actual Any using f
type AnyDescriptionFn ¶ added in v0.2.0
AnyDescriptionFn map sym Any using f
type AnyMapper ¶ added in v0.2.0
func AnyDescription ¶ added in v0.2.0
type BigInt ¶ added in v0.2.0
type BigInt struct { Sym any Description string Gap bool Actual *big.Int DisplayFormat DisplayFormat }
Type BigInt does not use embedding for common fields as it works poorly with struct literals
func (BigInt) ScalarDescription ¶ added in v0.2.0
func (BigInt) ScalarDisplayFormat ¶ added in v0.2.0
func (s BigInt) ScalarDisplayFormat() DisplayFormat
func (BigInt) ScalarIsGap ¶ added in v0.6.0
func (BigInt) ScalarValue ¶ added in v0.2.0
func (BigInt) SymBigInt ¶ added in v0.2.0
SymBigInt asserts symbolic value is a BigInt and returns it
func (BigInt) SymBitBuf ¶ added in v0.2.0
func (s BigInt) SymBitBuf() bitio.ReaderAtSeeker
SymBitBuf asserts symbolic value is a BitBuf and returns it
func (BigInt) TrySymAny ¶ added in v0.2.0
TrySymAny try assert symbolic value is a Any and return result
func (BigInt) TrySymBigInt ¶ added in v0.2.0
TrySymBigInt try assert symbolic value is a BigInt and return result
func (BigInt) TrySymBitBuf ¶ added in v0.2.0
func (s BigInt) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
TrySymBitBuf try assert symbolic value is a BitBuf and return result
func (BigInt) TrySymBool ¶ added in v0.2.0
TrySymBool try assert symbolic value is a Bool and return result
func (BigInt) TrySymFlt ¶ added in v0.2.0
TrySymFlt try assert symbolic value is a Flt and return result
func (BigInt) TrySymSint ¶ added in v0.2.0
TrySymSint try assert symbolic value is a Sint and return result
func (BigInt) TrySymStr ¶ added in v0.2.0
TrySymStr try assert symbolic value is a Str and return result
func (BigInt) TrySymUint ¶ added in v0.2.0
TrySymUint try assert symbolic value is a Uint and return result
type BigIntActualFn ¶ added in v0.2.0
BigIntActualFn map actual BigInt using f
type BigIntDescriptionFn ¶ added in v0.2.0
BigIntDescriptionFn map sym BigInt using f
type BigIntMapper ¶ added in v0.2.0
func BigIntActual ¶ added in v0.2.0
func BigIntActual(v *big.Int) BigIntMapper
func BigIntDescription ¶ added in v0.2.0
func BigIntDescription(v string) BigIntMapper
func BigIntSym ¶ added in v0.2.0
func BigIntSym(v any) BigIntMapper
type BigIntSymFn ¶ added in v0.2.0
BigIntSymFn map sym BigInt using f
type BitBuf ¶ added in v0.2.0
type BitBuf struct { Sym any Description string Gap bool Actual bitio.ReaderAtSeeker }
Type BitBuf does not use embedding for common fields as it works poorly with struct literals
func (BitBuf) ScalarDescription ¶ added in v0.2.0
func (BitBuf) ScalarDisplayFormat ¶ added in v0.2.0
func (s BitBuf) ScalarDisplayFormat() DisplayFormat
func (BitBuf) ScalarIsGap ¶ added in v0.6.0
func (BitBuf) ScalarValue ¶ added in v0.2.0
func (BitBuf) SymBigInt ¶ added in v0.2.0
SymBigInt asserts symbolic value is a BigInt and returns it
func (BitBuf) SymBitBuf ¶ added in v0.2.0
func (s BitBuf) SymBitBuf() bitio.ReaderAtSeeker
SymBitBuf asserts symbolic value is a BitBuf and returns it
func (BitBuf) TrySymAny ¶ added in v0.2.0
TrySymAny try assert symbolic value is a Any and return result
func (BitBuf) TrySymBigInt ¶ added in v0.2.0
TrySymBigInt try assert symbolic value is a BigInt and return result
func (BitBuf) TrySymBitBuf ¶ added in v0.2.0
func (s BitBuf) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
TrySymBitBuf try assert symbolic value is a BitBuf and return result
func (BitBuf) TrySymBool ¶ added in v0.2.0
TrySymBool try assert symbolic value is a Bool and return result
func (BitBuf) TrySymFlt ¶ added in v0.2.0
TrySymFlt try assert symbolic value is a Flt and return result
func (BitBuf) TrySymSint ¶ added in v0.2.0
TrySymSint try assert symbolic value is a Sint and return result
func (BitBuf) TrySymStr ¶ added in v0.2.0
TrySymStr try assert symbolic value is a Str and return result
func (BitBuf) TrySymUint ¶ added in v0.2.0
TrySymUint try assert symbolic value is a Uint and return result
type BitBufActualFn ¶ added in v0.2.0
type BitBufActualFn func(a bitio.ReaderAtSeeker) bitio.ReaderAtSeeker
BitBufActualFn map actual BitBuf using f
type BitBufDescriptionFn ¶ added in v0.2.0
BitBufDescriptionFn map sym BitBuf using f
type BitBufMapper ¶ added in v0.2.0
func BitBufActual ¶ added in v0.2.0
func BitBufActual(v bitio.ReaderAtSeeker) BitBufMapper
func BitBufDescription ¶ added in v0.2.0
func BitBufDescription(v string) BitBufMapper
func BitBufSym ¶ added in v0.2.0
func BitBufSym(v any) BitBufMapper
type BitBufSymFn ¶ added in v0.2.0
BitBufSymFn map sym BitBuf using f
type Bool ¶ added in v0.2.0
Type Bool does not use embedding for common fields as it works poorly with struct literals
func (Bool) ScalarDescription ¶ added in v0.2.0
func (Bool) ScalarDisplayFormat ¶ added in v0.2.0
func (s Bool) ScalarDisplayFormat() DisplayFormat
func (Bool) ScalarIsGap ¶ added in v0.6.0
func (Bool) ScalarValue ¶ added in v0.2.0
func (Bool) SymBitBuf ¶ added in v0.2.0
func (s Bool) SymBitBuf() bitio.ReaderAtSeeker
SymBitBuf asserts symbolic value is a BitBuf and returns it
func (Bool) TrySymAny ¶ added in v0.2.0
TrySymAny try assert symbolic value is a Any and return result
func (Bool) TrySymBigInt ¶ added in v0.2.0
TrySymBigInt try assert symbolic value is a BigInt and return result
func (Bool) TrySymBitBuf ¶ added in v0.2.0
func (s Bool) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
TrySymBitBuf try assert symbolic value is a BitBuf and return result
func (Bool) TrySymBool ¶ added in v0.2.0
TrySymBool try assert symbolic value is a Bool and return result
func (Bool) TrySymFlt ¶ added in v0.2.0
TrySymFlt try assert symbolic value is a Flt and return result
func (Bool) TrySymSint ¶ added in v0.2.0
TrySymSint try assert symbolic value is a Sint and return result
func (Bool) TrySymStr ¶ added in v0.2.0
TrySymStr try assert symbolic value is a Str and return result
func (Bool) TrySymUint ¶ added in v0.2.0
TrySymUint try assert symbolic value is a Uint and return result
type BoolActualFn ¶ added in v0.2.0
BoolActualFn map actual Bool using f
type BoolDescriptionFn ¶ added in v0.2.0
BoolDescriptionFn map sym Bool using f
type BoolMapDescription ¶ added in v0.2.0
Map Bool description
type BoolMapSymBool ¶ added in v0.2.0
Map Bool sym Bool
type BoolMapSymFlt ¶ added in v0.2.0
Map Bool sym Flt
type BoolMapSymSint ¶ added in v0.2.0
Map Bool sym Sint
type BoolMapSymStr ¶ added in v0.2.0
Map Bool sym Str
type BoolMapSymUint ¶ added in v0.2.0
Map Bool sym Uint
type BoolMapper ¶ added in v0.2.0
func BoolActual ¶ added in v0.2.0
func BoolActual(v bool) BoolMapper
func BoolDescription ¶ added in v0.2.0
func BoolDescription(v string) BoolMapper
func BoolSym ¶ added in v0.2.0
func BoolSym(v any) BoolMapper
type DisplayFormat ¶
type DisplayFormat int
const ( NumberDecimal DisplayFormat = iota NumberBinary NumberOctal NumberHex )
func (DisplayFormat) FormatBase ¶
func (df DisplayFormat) FormatBase() int
type Flt ¶ added in v0.2.0
Type Flt does not use embedding for common fields as it works poorly with struct literals
func (Flt) ScalarDescription ¶ added in v0.2.0
func (Flt) ScalarDisplayFormat ¶ added in v0.2.0
func (s Flt) ScalarDisplayFormat() DisplayFormat
func (Flt) ScalarIsGap ¶ added in v0.6.0
func (Flt) ScalarValue ¶ added in v0.2.0
func (Flt) SymBitBuf ¶ added in v0.2.0
func (s Flt) SymBitBuf() bitio.ReaderAtSeeker
SymBitBuf asserts symbolic value is a BitBuf and returns it
func (Flt) TrySymAny ¶ added in v0.2.0
TrySymAny try assert symbolic value is a Any and return result
func (Flt) TrySymBigInt ¶ added in v0.2.0
TrySymBigInt try assert symbolic value is a BigInt and return result
func (Flt) TrySymBitBuf ¶ added in v0.2.0
func (s Flt) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
TrySymBitBuf try assert symbolic value is a BitBuf and return result
func (Flt) TrySymBool ¶ added in v0.2.0
TrySymBool try assert symbolic value is a Bool and return result
func (Flt) TrySymFlt ¶ added in v0.2.0
TrySymFlt try assert symbolic value is a Flt and return result
func (Flt) TrySymSint ¶ added in v0.2.0
TrySymSint try assert symbolic value is a Sint and return result
func (Flt) TrySymStr ¶ added in v0.2.0
TrySymStr try assert symbolic value is a Str and return result
func (Flt) TrySymUint ¶ added in v0.2.0
TrySymUint try assert symbolic value is a Uint and return result
type FltActualFn ¶ added in v0.2.0
FltActualFn map actual Flt using f
type FltDescriptionFn ¶ added in v0.2.0
FltDescriptionFn map sym Flt using f
type FltMapper ¶ added in v0.2.0
func FltDescription ¶ added in v0.2.0
type RawBytesMap ¶ added in v0.2.0
type SRangeEntry ¶ added in v0.0.3
SRangeToScalar maps ranges to a scalar, first in range is chosen
type SRangeToScalar ¶
type SRangeToScalar []SRangeEntry
SRangeToScalar maps sint64 ranges to a scalar, first in range is chosen
type Sint ¶ added in v0.2.0
type Sint struct { Sym any Description string Gap bool Actual int64 DisplayFormat DisplayFormat }
Type Sint does not use embedding for common fields as it works poorly with struct literals
func (Sint) ScalarDescription ¶ added in v0.2.0
func (Sint) ScalarDisplayFormat ¶ added in v0.2.0
func (s Sint) ScalarDisplayFormat() DisplayFormat
func (Sint) ScalarIsGap ¶ added in v0.6.0
func (Sint) ScalarValue ¶ added in v0.2.0
func (Sint) SymBitBuf ¶ added in v0.2.0
func (s Sint) SymBitBuf() bitio.ReaderAtSeeker
SymBitBuf asserts symbolic value is a BitBuf and returns it
func (Sint) TrySymAny ¶ added in v0.2.0
TrySymAny try assert symbolic value is a Any and return result
func (Sint) TrySymBigInt ¶ added in v0.2.0
TrySymBigInt try assert symbolic value is a BigInt and return result
func (Sint) TrySymBitBuf ¶ added in v0.2.0
func (s Sint) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
TrySymBitBuf try assert symbolic value is a BitBuf and return result
func (Sint) TrySymBool ¶ added in v0.2.0
TrySymBool try assert symbolic value is a Bool and return result
func (Sint) TrySymFlt ¶ added in v0.2.0
TrySymFlt try assert symbolic value is a Flt and return result
func (Sint) TrySymSint ¶ added in v0.2.0
TrySymSint try assert symbolic value is a Sint and return result
func (Sint) TrySymStr ¶ added in v0.2.0
TrySymStr try assert symbolic value is a Str and return result
func (Sint) TrySymUint ¶ added in v0.2.0
TrySymUint try assert symbolic value is a Uint and return result
type SintActualFn ¶ added in v0.2.0
SintActualFn map actual Sint using f
func SintActualAdd ¶ added in v0.2.0
func SintActualAdd(n int) SintActualFn
type SintDescriptionFn ¶ added in v0.2.0
SintDescriptionFn map sym Sint using f
type SintMapDescription ¶ added in v0.2.0
Map Sint description
type SintMapSymBool ¶ added in v0.2.0
Map Sint sym Bool
type SintMapSymFlt ¶ added in v0.2.0
Map Sint sym Flt
type SintMapSymSint ¶ added in v0.2.0
Map Sint sym Sint
type SintMapSymStr ¶ added in v0.2.0
Map Sint sym Str
type SintMapSymUint ¶ added in v0.2.0
Map Sint sym Uint
type SintMapper ¶ added in v0.2.0
func SintActual ¶ added in v0.2.0
func SintActual(v int64) SintMapper
func SintDescription ¶ added in v0.2.0
func SintDescription(v string) SintMapper
func SintSym ¶ added in v0.2.0
func SintSym(v any) SintMapper
type Str ¶ added in v0.2.0
Type Str does not use embedding for common fields as it works poorly with struct literals
func (Str) ScalarDescription ¶ added in v0.2.0
func (Str) ScalarDisplayFormat ¶ added in v0.2.0
func (s Str) ScalarDisplayFormat() DisplayFormat
func (Str) ScalarIsGap ¶ added in v0.6.0
func (Str) ScalarValue ¶ added in v0.2.0
func (Str) SymBitBuf ¶ added in v0.2.0
func (s Str) SymBitBuf() bitio.ReaderAtSeeker
SymBitBuf asserts symbolic value is a BitBuf and returns it
func (Str) TrySymAny ¶ added in v0.2.0
TrySymAny try assert symbolic value is a Any and return result
func (Str) TrySymBigInt ¶ added in v0.2.0
TrySymBigInt try assert symbolic value is a BigInt and return result
func (Str) TrySymBitBuf ¶ added in v0.2.0
func (s Str) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
TrySymBitBuf try assert symbolic value is a BitBuf and return result
func (Str) TrySymBool ¶ added in v0.2.0
TrySymBool try assert symbolic value is a Bool and return result
func (Str) TrySymFlt ¶ added in v0.2.0
TrySymFlt try assert symbolic value is a Flt and return result
func (Str) TrySymSint ¶ added in v0.2.0
TrySymSint try assert symbolic value is a Sint and return result
func (Str) TrySymStr ¶ added in v0.2.0
TrySymStr try assert symbolic value is a Str and return result
func (Str) TrySymUint ¶ added in v0.2.0
TrySymUint try assert symbolic value is a Uint and return result
type StrActualFn ¶ added in v0.2.0
StrActualFn map actual Str using f
func StrActualTrim ¶ added in v0.2.0
func StrActualTrim(cutset string) StrActualFn
type StrDescriptionFn ¶ added in v0.2.0
StrDescriptionFn map sym Str using f
type StrMapDescription ¶ added in v0.2.0
Map Str description
type StrMapSymBool ¶ added in v0.2.0
Map Str sym Bool
type StrMapSymFlt ¶ added in v0.2.0
Map Str sym Flt
type StrMapSymSint ¶ added in v0.2.0
Map Str sym Sint
type StrMapSymStr ¶ added in v0.2.0
Map Str sym Str
type StrMapSymUint ¶ added in v0.2.0
Map Str sym Uint
type StrMapper ¶ added in v0.2.0
func StrDescription ¶ added in v0.2.0
func StrSymParseFloat ¶ added in v0.2.0
func StrSymParseInt ¶ added in v0.2.0
func StrSymParseUint ¶ added in v0.2.0
func TryStrSymParseFloat ¶ added in v0.2.0
func TryStrSymParseInt ¶ added in v0.2.0
func TryStrSymParseUint ¶ added in v0.2.0
type URangeEntry ¶ added in v0.0.3
type Uint ¶ added in v0.2.0
type Uint struct { Sym any Description string Gap bool Actual uint64 DisplayFormat DisplayFormat }
Type Uint does not use embedding for common fields as it works poorly with struct literals
func (Uint) ScalarDescription ¶ added in v0.2.0
func (Uint) ScalarDisplayFormat ¶ added in v0.2.0
func (s Uint) ScalarDisplayFormat() DisplayFormat
func (Uint) ScalarIsGap ¶ added in v0.6.0
func (Uint) ScalarValue ¶ added in v0.2.0
func (Uint) SymBitBuf ¶ added in v0.2.0
func (s Uint) SymBitBuf() bitio.ReaderAtSeeker
SymBitBuf asserts symbolic value is a BitBuf and returns it
func (Uint) TrySymAny ¶ added in v0.2.0
TrySymAny try assert symbolic value is a Any and return result
func (Uint) TrySymBigInt ¶ added in v0.2.0
TrySymBigInt try assert symbolic value is a BigInt and return result
func (Uint) TrySymBitBuf ¶ added in v0.2.0
func (s Uint) TrySymBitBuf() (bitio.ReaderAtSeeker, bool)
TrySymBitBuf try assert symbolic value is a BitBuf and return result
func (Uint) TrySymBool ¶ added in v0.2.0
TrySymBool try assert symbolic value is a Bool and return result
func (Uint) TrySymFlt ¶ added in v0.2.0
TrySymFlt try assert symbolic value is a Flt and return result
func (Uint) TrySymSint ¶ added in v0.2.0
TrySymSint try assert symbolic value is a Sint and return result
func (Uint) TrySymStr ¶ added in v0.2.0
TrySymStr try assert symbolic value is a Str and return result
func (Uint) TrySymUint ¶ added in v0.2.0
TrySymUint try assert symbolic value is a Uint and return result
type UintActualFn ¶ added in v0.2.0
UintActualFn map actual Uint using f
func UintActualAdd ¶ added in v0.2.0
func UintActualAdd(n int) UintActualFn
type UintDescriptionFn ¶ added in v0.2.0
UintDescriptionFn map sym Uint using f
type UintFn ¶ added in v0.2.0
UintFn map actual Uint using f
func UintActualUnixTime ¶ added in v0.2.0
type UintMapDescription ¶ added in v0.2.0
Map Uint description
type UintMapSymBool ¶ added in v0.2.0
Map Uint sym Bool
type UintMapSymFlt ¶ added in v0.2.0
Map Uint sym Flt
type UintMapSymSint ¶ added in v0.2.0
Map Uint sym Sint
type UintMapSymStr ¶ added in v0.2.0
Map Uint sym Str
type UintMapSymUint ¶ added in v0.2.0
Map Uint sym Uint
type UintMapper ¶ added in v0.2.0
func UintActual ¶ added in v0.2.0
func UintActual(v uint64) UintMapper
func UintDescription ¶ added in v0.2.0
func UintDescription(v string) UintMapper
func UintSym ¶ added in v0.2.0
func UintSym(v any) UintMapper
type UintRangeToScalar ¶ added in v0.2.0
type UintRangeToScalar []URangeEntry
UintRangeToScalar maps uint64 ranges to a scalar, first in range is chosen