Documentation ¶
Index ¶
- Constants
- Variables
- func Abs(x float64) float64
- func AbsInt(x int) int
- func AppendBytes(slices ...[]byte) (bytes []byte)
- func CharToByte(sep string) byte
- func CoalesceStrings(strings ...string) (s string)
- func ContainsSpecial(s string) bool
- func Copy[T comparable](s []T) []T
- func CopyBytes(b []byte) []byte
- func Decode(e ENCODING, dest any) int
- func DeepEqual(x any, y any) bool
- func Format(format string, a ...any) string
- func GenError(callOffset int, format string, a ...any) error
- func GobDecode(buf []byte, dest any)
- func GobEncode(a any) []byte
- func In(x any, ys ...any) bool
- func InBytes(a byte, b []byte) bool
- func IsJsonable(a any) bool
- func IsQuote(b byte) bool
- func IsSpecialChar(b byte) bool
- func IsWhitespace(b byte) bool
- func JoinByteSlices(sep []byte, bytes [][]byte) []byte
- func JoinBytesSep(sep byte, bytes ...byte) []byte
- func JoinStrings(strs []string, sep string) string
- func M() map[string]*reflect.Method
- func MatchBytes(a, b []byte) bool
- func MustFloatAdd(x float64, y float64)
- func MustFloatMultiply(x float64, y float64)
- func MustFloatPow(x float64, y float64)
- func MustIntAdd(x int, y int)
- func MustIntMultiply(x int, y int)
- func MustIntPow(x int, y int)
- func ParamError(e string, r any) error
- func PrintStats(a any)
- func RepeatBytes(bytes []byte, n int) []byte
- func SortByCol(d [][]string, col int)
- func Source(i int) string
- func StringsInStrings(xs []string, ys []string) bool
- func StructTypeMatch(x, y *TYPE, ancestry ...*TYPE) bool
- type ARRAY
- func (a ARRAY) Bool() bool
- func (a ARRAY) Bytes() []byte
- func (a ARRAY) Encode() ENCODING
- func (a ARRAY) ForEach(f func(i int, k string, v VALUE) (brake bool))
- func (a ARRAY) Index(i int) VALUE
- func (a ARRAY) Interface() any
- func (a ARRAY) JSON() JSON
- func (a ARRAY) Len() int
- func (a ARRAY) MAP() MAP
- func (a ARRAY) Map() map[string]any
- func (a ARRAY) Native() any
- func (a ARRAY) Pointer() unsafe.Pointer
- func (a ARRAY) SLICE() SLICE
- func (a ARRAY) Scan(dest any)
- func (a ARRAY) Set(i int, v any) ARRAY
- func (a ARRAY) Slice() []any
- func (a ARRAY) String() string
- func (a ARRAY) TYPE() *TYPE
- func (a ARRAY) VALUE() VALUE
- type BOOL
- func (b BOOL) BYTES() BYTES
- func (b BOOL) Bool() bool
- func (b BOOL) Bytes() []byte
- func (b BOOL) Encode() ENCODING
- func (b BOOL) Float64() float64
- func (b BOOL) Int() int
- func (b BOOL) Interface() any
- func (b BOOL) Native() bool
- func (b BOOL) STRING() STRING
- func (b BOOL) String() string
- func (b BOOL) VALUE() VALUE
- type BYTES
- func (b BYTES) ARRAY() ARRAY
- func (b BYTES) BOOL() BOOL
- func (b BYTES) Bool() bool
- func (b BYTES) Bytes() []byte
- func (b BYTES) CanBool() bool
- func (b BYTES) CanFloat() bool
- func (b BYTES) CanInt() bool
- func (b BYTES) CanString() bool
- func (b BYTES) CanUint() bool
- func (b BYTES) CanUuid() bool
- func (b BYTES) Encode() []byte
- func (b BYTES) Escaped(quote byte, esc byte) BYTES
- func (b BYTES) FLOAT() FLOAT
- func (b BYTES) Float64() float64
- func (b BYTES) INT() INT
- func (b BYTES) InBytes(bytes ...[]byte) bool
- func (b BYTES) Int() int
- func (b BYTES) Interface() any
- func (b BYTES) JSON() JSON
- func (b BYTES) MustBool()
- func (b BYTES) MustFloat()
- func (b BYTES) MustInt()
- func (b BYTES) MustString()
- func (b BYTES) MustUuid()
- func (b BYTES) Native() []byte
- func (b BYTES) SLICE() SLICE
- func (b BYTES) STRING() STRING
- func (b BYTES) String() string
- func (b BYTES) TIME() TIME
- func (b BYTES) UUID() UUID
- func (b BYTES) Uint() uint
- func (b BYTES) VALUE() VALUE
- type Duration
- func (d Duration) Hours() int
- func (d Duration) Milliseconds() int
- func (d Duration) Minutes() int
- func (d Duration) Nanoseconds() int
- func (d Duration) Native() time.Duration
- func (d Duration) Round(m Duration) Duration
- func (d Duration) STRING() STRING
- func (d Duration) Seconds() int
- func (d Duration) String() string
- func (d Duration) Truncate(m Duration) Duration
- type ENCODING
- type FIELD
- func (f FIELD) Index() int
- func (f FIELD) Interface() any
- func (f FIELD) KIND() KIND
- func (f FIELD) Name() string
- func (f FIELD) Pointer() unsafe.Pointer
- func (f FIELD) RawTag() string
- func (f FIELD) STRING() STRING
- func (f FIELD) Set(a any) FIELD
- func (f FIELD) String() string
- func (f FIELD) SubTag(tag string, subTag string) string
- func (f FIELD) SubTags(tag string) map[string]string
- func (f FIELD) TYPE() *TYPE
- func (f FIELD) Tag(name string) string
- func (f FIELD) Tags() map[string]string
- func (f FIELD) VALUE() VALUE
- func (f FIELD) Visible() bool
- type FLOAT
- func (f FLOAT) Abs() float64
- func (f FLOAT) Add(val float64) float64
- func (f FLOAT) BOOL() BOOL
- func (f FLOAT) Bool() bool
- func (f FLOAT) Bytes() []byte
- func (f FLOAT) Divide(val float64) float64
- func (f FLOAT) Encode() ENCODING
- func (f FLOAT) Float32() float32
- func (f FLOAT) Float64() float64
- func (f FLOAT) INT() INT
- func (f FLOAT) Int() int
- func (f FLOAT) Interface() any
- func (f FLOAT) IsNegative() bool
- func (f FLOAT) Mod(val float64) float64
- func (f FLOAT) Multiply(val float64) float64
- func (f FLOAT) Native() float64
- func (f FLOAT) Pow(val float64) float64
- func (f FLOAT) STRING() STRING
- func (f FLOAT) String() string
- func (f FLOAT) Sub(val float64) float64
- func (f FLOAT) TIME() TIME
- func (f FLOAT) UINT() UINT
- func (f FLOAT) Uint() uint
- func (f FLOAT) VALUE() VALUE
- type FieldType
- type Gmap
- type GmapEl
- type Holiday
- type Holidays
- type INT
- func (i INT) Abs() int
- func (i INT) Add(val int) int
- func (i INT) BOOL() BOOL
- func (i INT) Bool() bool
- func (i INT) Bytes() []byte
- func (i INT) Divide(val int) int
- func (i INT) Encode() ENCODING
- func (i INT) FLOAT() FLOAT
- func (i INT) Float64() float64
- func (i INT) Int() int
- func (i INT) Int16() int16
- func (i INT) Int32() int32
- func (i INT) Int64() int64
- func (i INT) Int8() int8
- func (i INT) Interface() any
- func (i INT) IsNegative() bool
- func (i INT) Mod(val int) int
- func (i INT) Multiply(val int) int
- func (i INT) Native() int
- func (i INT) Pow(val int) int
- func (i INT) STRING() STRING
- func (i INT) String() string
- func (i INT) Sub(val int) int
- func (i INT) TIME() TIME
- func (i INT) Uint() uint
- func (i INT) Uint16() uint16
- func (i INT) Uint32() uint32
- func (i INT) Uint64() uint64
- func (i INT) Uint8() uint8
- func (i INT) VALUE() VALUE
- type Imethod
- type InlineSyntax
- type JSON
- func (j JSON) ARRAY() ARRAY
- func (j JSON) Bool() bool
- func (j JSON) Bytes() []byte
- func (j JSON) Empty() bool
- func (j JSON) Format(indent int, breakList ...bool) string
- func (j JSON) Interface() any
- func (j JSON) MAP() MAP
- func (j JSON) Map() map[string]any
- func (j JSON) Native() []byte
- func (j JSON) SLICE() SLICE
- func (j JSON) STRING() STRING
- func (j JSON) Scan(dest any, tags ...string)
- func (j JSON) Slice() []any
- func (j JSON) String() string
- func (j JSON) Unmarshal() (object map[string]any, list []any)
- func (j JSON) VALUE() VALUE
- type KIND
- func (k KIND) Byte() byte
- func (k KIND) CanNil() bool
- func (k KIND) IsBasic() bool
- func (k KIND) IsData() bool
- func (k KIND) IsNumeric() bool
- func (k KIND) NewArray(size int) ARRAY
- func (k KIND) NewMap() MAP
- func (k KIND) NewSlice(size int) SLICE
- func (k KIND) NewValue() VALUE
- func (k KIND) STRING() STRING
- func (k KIND) Size() uintptr
- func (k KIND) String() string
- type Location
- type MAP
- func (m MAP) ARRAY() ARRAY
- func (m MAP) Bool() bool
- func (m MAP) Bytes() []byte
- func (m MAP) Delete(key string) MAP
- func (m MAP) Encode() ENCODING
- func (m MAP) ForEach(f func(i int, k string, v VALUE) (brake bool))
- func (m MAP) Gmap() Gmap
- func (m MAP) Index(k string) VALUE
- func (m MAP) Interface() any
- func (m MAP) JSON() JSON
- func (m MAP) KIND() KIND
- func (m MAP) KeyPtr(key string) unsafe.Pointer
- func (m MAP) Keys() []string
- func (m MAP) Len() int
- func (m MAP) Map() map[string]any
- func (m MAP) MapValues() map[string]VALUE
- func (m MAP) Native() any
- func (m MAP) Pointer() unsafe.Pointer
- func (m MAP) SLICE() SLICE
- func (m MAP) STRING() STRING
- func (m MAP) STRUCT() STRUCT
- func (m MAP) Scan(dest any, tags ...string)
- func (m MAP) Set(k string, v any) MAP
- func (m MAP) Slice() []any
- func (m MAP) String() string
- func (m MAP) Strings() []string
- func (m MAP) StructTagged(tag string) STRUCT
- func (m MAP) TYPE() *TYPE
- func (m MAP) VALUE() VALUE
- func (m MAP) Values() []VALUE
- type Marshaler
- func (m *Marshaler) Buffer() []byte
- func (m *Marshaler) Byte() byte
- func (m *Marshaler) ByteIs(b byte) bool
- func (m Marshaler) Bytes() []byte
- func (m *Marshaler) CurIndent() int
- func (m *Marshaler) Cursor() int
- func (m Marshaler) Formatted(indent ...int) string
- func (m *Marshaler) Inc(i ...int)
- func (m *Marshaler) IncDepth()
- func (m *Marshaler) Init()
- func (m *Marshaler) Len() int
- func (m Marshaler) Map() map[string]any
- func (m *Marshaler) Marshal(a any) *Marshaler
- func (m *Marshaler) New() *Marshaler
- func (m *Marshaler) Reset()
- func (m *Marshaler) ResetCursor()
- func (m *Marshaler) SetBuffer(b []byte)
- func (m Marshaler) Slice() []any
- func (m Marshaler) String() string
- func (m *Marshaler) Unmarshal(bytes ...[]byte) *Marshaler
- func (m *Marshaler) UnmarshalTo(stop []byte) []byte
- func (m *Marshaler) Value() any
- type Month
- type SLICE
- func (s SLICE) ARRAY() ARRAY
- func (s SLICE) Append(x ...any) SLICE
- func (s SLICE) Bool() bool
- func (s SLICE) Bytes() []byte
- func (s SLICE) Encode() ENCODING
- func (s SLICE) Extend(n int) SLICE
- func (s SLICE) Floats() []float64
- func (s SLICE) ForEach(f func(i int, k string, v VALUE) (brake bool))
- func (s SLICE) Index(i int) VALUE
- func (s SLICE) Interface() any
- func (s SLICE) Ints() []int
- func (s SLICE) JSON() JSON
- func (s SLICE) Len() int
- func (s SLICE) MAP() MAP
- func (s SLICE) Map() map[string]any
- func (s SLICE) MapKeys(keys []string) (m map[string]any)
- func (s SLICE) MapKeysMap(keys []string) MAP
- func (s SLICE) MapValues(values SLICE) (m map[string]any)
- func (s SLICE) MapValuesMap(values SLICE) MAP
- func (s SLICE) Native() any
- func (s SLICE) Pointer() unsafe.Pointer
- func (s SLICE) Scan(dest any)
- func (s SLICE) ScanList(dest any, tags ...string)
- func (s SLICE) Set(i int, v any) SLICE
- func (s SLICE) Slice() []any
- func (A SLICE) SortComplex() []any
- func (s SLICE) SortFloats() []float64
- func (s SLICE) SortInts() []int
- func (s SLICE) SortStrings() []string
- func (s SLICE) String() string
- func (s SLICE) Strings() []string
- func (s SLICE) TYPE() *TYPE
- func (s SLICE) VALUE() VALUE
- func (s SLICE) Values() []VALUE
- type STRING
- func (s STRING) BOOL() BOOL
- func (s STRING) Bool() bool
- func (s STRING) Bytes() []byte
- func (s STRING) CanParseFloat() (float float64, can bool, err error)
- func (s STRING) CanTime() (t TIME, can bool, err error)
- func (s STRING) Contains(substr string) bool
- func (s STRING) ContainsAny(chars string) bool
- func (s STRING) Count(substr string) int
- func (s STRING) Encode() ENCODING
- func (s STRING) Escaped(quote string, esc string) string
- func (s STRING) EscapedSplit(sep string) []string
- func (s STRING) FLOAT() FLOAT
- func (s STRING) Float64() float64
- func (s STRING) GetSerialValue(key string, kvSep string, itemSep string) (string, bool)
- func (s STRING) INT() INT
- func (s STRING) InStrings(xs []string) bool
- func (s STRING) Index(i int) VALUE
- func (s STRING) IndexOf(substr string) int
- func (s STRING) IndexOfAny(chars string) int
- func (s STRING) Int() int
- func (s STRING) Interface() any
- func (s STRING) JSON() JSON
- func (s STRING) LastIndexOf(substr string) int
- func (s STRING) LastIndexOfAny(chars string) int
- func (s STRING) Len() int
- func (s STRING) Native() string
- func (s STRING) ParseFloat() float64
- func (s STRING) ParseTime() TIME
- func (s STRING) RegexFind(regex string, N int) []string
- func (s STRING) RegexMatch(regex string) bool
- func (s STRING) RegexReplace(regex string, repl string, N int) string
- func (s STRING) RegexSplit(regex string, N int) []string
- func (s STRING) RemoveWhitespace() (string, error)
- func (s STRING) Repeat(N int) string
- func (s STRING) Replace(old string, new string, N int) string
- func (s STRING) SLICE() SLICE
- func (s STRING) STRING() STRING
- func (s STRING) SetIndex(i int, c string) string
- func (s STRING) Slice() []any
- func (s STRING) Split(sep string, N int) []string
- func (s STRING) String() string
- func (s STRING) Strings() []string
- func (s STRING) TIME() TIME
- func (s STRING) ToCamel() string
- func (s STRING) ToLower() string
- func (s STRING) ToPascal() string
- func (s STRING) ToPhrase(c bool) string
- func (s STRING) ToSnake() string
- func (s STRING) ToUpper() string
- func (s STRING) Trim(cutset string) string
- func (s STRING) TrimWhitespace() string
- func (s STRING) Two(sep string) (x string, y string)
- func (s STRING) UINT() UINT
- func (s STRING) UUID() UUID
- func (s STRING) Uint() uint
- func (s STRING) UnmarshalJson() (object map[string]any, list []any)
- func (s STRING) UnmarshalJsonList(itemSep string) []string
- func (s STRING) UnmarshalJsonMap(kvSep string, itemSep string) map[string]string
- func (s STRING) VALUE() VALUE
- func (s STRING) Width(N int) string
- type STRUCT
- func (s STRUCT) ARRAY() ARRAY
- func (s STRUCT) Bool() bool
- func (s STRUCT) Bytes() []byte
- func (s STRUCT) Encode() ENCODING
- func (s STRUCT) Field(n string) (r FIELD)
- func (s *STRUCT) FieldIndex() (index map[string]FIELD)
- func (s STRUCT) FieldNames() []string
- func (s STRUCT) ForEach(f func(i int, f string, v VALUE) (brake bool))
- func (s STRUCT) ForFields(inclDetail bool, f func(i int, f FIELD) (brake bool))
- func (s STRUCT) Gmap() Gmap
- func (s STRUCT) GmapByTag(tag string) Gmap
- func (s STRUCT) Index(i int) VALUE
- func (s STRUCT) Interface() any
- func (s STRUCT) JSON() JSON
- func (s STRUCT) JsonByTag(tag string) JSON
- func (s STRUCT) Len() int
- func (s STRUCT) MAP() MAP
- func (s STRUCT) Map() map[string]any
- func (s STRUCT) MapByTag(tag string) (m map[string]any)
- func (s STRUCT) MapByTagMap(tag string) MAP
- func (s STRUCT) MapFormatted(format StrFormat) (m map[string]any)
- func (s STRUCT) Name() string
- func (s STRUCT) Native() any
- func (s STRUCT) NumField() int
- func (s STRUCT) Pointer() unsafe.Pointer
- func (s STRUCT) ReflectType() reflect.Type
- func (s STRUCT) ReflectValue() reflect.Value
- func (s STRUCT) SLICE() SLICE
- func (s STRUCT) Scan(dest any, tags ...string)
- func (s STRUCT) Set(i int, v any) STRUCT
- func (s STRUCT) Slice() []any
- func (s STRUCT) String() string
- func (s STRUCT) Strings() []string
- func (s STRUCT) Struct() any
- func (s *STRUCT) SubTagIndex(tag string, subTag string) map[string]FIELD
- func (s STRUCT) TYPE() *TYPE
- func (s STRUCT) Tag(t string, v string) (r FIELD)
- func (s *STRUCT) TagIndex(tag string) map[string]FIELD
- func (s STRUCT) VALUE() VALUE
- type StrFormat
- type TIME
- func Christmas(y int) TIME
- func ColumbusDay(y int) TIME
- func Easter(y int) TIME
- func GoodFriday(y int) TIME
- func HolidayObserved(h TIME) TIME
- func InagurationDay(y int) TIME
- func IndependenceDay(y int) TIME
- func Instance(i int, wd Weekday, m Month, y int) TIME
- func LaborDay(y int) TIME
- func MemorialDay(y int) TIME
- func MlkDay(y int) TIME
- func NationalIndependenceDay(y int) TIME
- func NewDate(year int, month int, day int) TIME
- func NewTime(year int, month int, day int, hour int, min int, sec int, nsec int, ...) TIME
- func NewYears(y int) TIME
- func Now() TIME
- func ParseTime(f string, v string) TIME
- func PresidentsDay(y int) TIME
- func Thanksgiving(y int) TIME
- func VeteransDay(y int) TIME
- func (t TIME) Add(d Duration) TIME
- func (t TIME) AddDate(years int, months int, days int) TIME
- func (t TIME) After(u TIME) bool
- func (t TIME) Before(u TIME) bool
- func (t TIME) Bool() bool
- func (t TIME) Bytes() []byte
- func (t TIME) Date() TIME
- func (t TIME) Day() int
- func (t TIME) DaysInMonth() int
- func (t TIME) DaysSince(lt TIME) int
- func (t TIME) Encode() ENCODING
- func (t TIME) Equal(u TIME) bool
- func (t TIME) Float64() float64
- func (t TIME) Format(f string) string
- func (t TIME) Hour() int
- func (t TIME) Int() int
- func (t TIME) Interface() any
- func (t TIME) IsDate() bool
- func (t TIME) IsHoliday() (Holiday, bool)
- func (t TIME) Location() *time.Location
- func (t TIME) Minute() int
- func (t TIME) Month() int
- func (t TIME) MonthEnd() TIME
- func (t TIME) MonthStart() TIME
- func (t TIME) MonthsSince(lt TIME) int
- func (t TIME) Nanosecond() int
- func (t TIME) Native() time.Time
- func (t TIME) QuarterEnd(ye int) TIME
- func (t TIME) QuarterStart(ye int) TIME
- func (t TIME) Round(d Duration) TIME
- func (t TIME) STRING() STRING
- func (t TIME) Second() int
- func (t TIME) String() string
- func (t TIME) Sub(u TIME) Duration
- func (t TIME) Time() time.Time
- func (t TIME) Uint() uint
- func (t TIME) Unix() int
- func (t TIME) UnixNano() int
- func (t TIME) VALUE() VALUE
- func (t TIME) Weekday() Weekday
- func (t TIME) Year() int
- func (t TIME) YearEnd(ye int) TIME
- func (t TIME) YearStart(ye int) TIME
- func (t TIME) YearsSince(lt TIME) int
- type TYPE
- func (t *TYPE) DeepPtrElem() *TYPE
- func (t *TYPE) Elem() *TYPE
- func (t *TYPE) Field(i int) *FieldType
- func (t *TYPE) FieldByIndex(index []int) *FieldType
- func (t *TYPE) FieldByName(name string) *FieldType
- func (t *TYPE) FieldByTag(tag string, value string) *FieldType
- func (t *TYPE) FieldIndex(name string) int
- func (t *TYPE) FieldName(i int) string
- func (t *TYPE) FieldTag(name string) string
- func (t *TYPE) FieldTagValue(name string, tag string) string
- func (t *TYPE) ForFields(f func(i int, f *FieldType) (brake bool))
- func (t *TYPE) HasDataElem() bool
- func (t *TYPE) HasDataField() bool
- func (t *TYPE) IfaceIndir() bool
- func (t *TYPE) In(i int) *TYPE
- func (t *TYPE) InTypes(types ...*TYPE) bool
- func (t *TYPE) IndexTag(i int) string
- func (t *TYPE) IndexTagValue(i int, tag string) string
- func (t *TYPE) IsData() bool
- func (t *TYPE) IsError() bool
- func (t *TYPE) IsFunc() bool
- func (t *TYPE) IsStruct() bool
- func (t *TYPE) KIND() KIND
- func (t *TYPE) Kind() KIND
- func (t *TYPE) Name() string
- func (t *TYPE) NameShort() string
- func (t *TYPE) New() VALUE
- func (t *TYPE) NewValue() VALUE
- func (t *TYPE) NumField() int
- func (t *TYPE) NumIn() int
- func (t *TYPE) NumOut() int
- func (t *TYPE) Out(i int) *TYPE
- func (t *TYPE) PkgPath() string
- func (t *TYPE) PtrType() *TYPE
- func (t *TYPE) Reflect() reflect.Type
- func (t *TYPE) STRING() STRING
- func (t *TYPE) SoftMatch(typ *TYPE, ancestry ...*TYPE) bool
- func (t *TYPE) String() string
- func (t *TYPE) TagValues(tag string) (vals []string, has bool)
- type UINT
- func (u UINT) BOOL() BOOL
- func (u UINT) Bool() bool
- func (u UINT) Bytes() []byte
- func (u UINT) Encode() ENCODING
- func (u UINT) FLOAT() FLOAT
- func (u UINT) Float64() float64
- func (u UINT) Int() int
- func (u UINT) Int16() int16
- func (u UINT) Int32() int32
- func (u UINT) Int64() int64
- func (u UINT) Int8() int8
- func (u UINT) Interface() any
- func (u UINT) Native() int
- func (u UINT) STRING() STRING
- func (u UINT) String() string
- func (u UINT) TIME() TIME
- func (u UINT) Uint() uint
- func (u UINT) Uint16() uint16
- func (u UINT) Uint32() uint32
- func (u UINT) Uint64() uint64
- func (u UINT) Uint8() uint8
- func (u UINT) VALUE() VALUE
- type UUID
- type VALUE
- func (v VALUE) ARRAY() ARRAY
- func (v VALUE) Append(a ...any) VALUE
- func (v VALUE) BOOL() BOOL
- func (v VALUE) Bool() bool
- func (v VALUE) Bytes() []byte
- func (v VALUE) BytesFixedLen() []byte
- func (v VALUE) Cast(k KIND) any
- func (v VALUE) Convert(a any) any
- func (v VALUE) Copy() VALUE
- func (v VALUE) Elem() VALUE
- func (v VALUE) ElemDeep() VALUE
- func (v VALUE) ElemKind() KIND
- func (v VALUE) Encode() ENCODING
- func (v VALUE) EncodeNum() ENCODING
- func (v VALUE) Extend(n int) VALUE
- func (v VALUE) FLOAT() FLOAT
- func (v VALUE) Float64() float64
- func (v VALUE) ForEach(f func(i int, k string, v VALUE) (brake bool))
- func (v VALUE) Gmap() Gmap
- func (v VALUE) HasDataElem() bool
- func (v VALUE) INT() INT
- func (v VALUE) Index(i int) VALUE
- func (v VALUE) Init() VALUE
- func (v VALUE) InspectDataElems() bool
- func (v VALUE) Int() int
- func (v VALUE) Interface() any
- func (v VALUE) IsData() bool
- func (v VALUE) IsNil() bool
- func (v VALUE) IsPtr() bool
- func (v VALUE) IsZero() bool
- func (v VALUE) JSON() JSON
- func (v VALUE) KIND() KIND
- func (v VALUE) Kind() KIND
- func (v VALUE) Len() int
- func (v VALUE) MAP() MAP
- func (v VALUE) MapIndex(i string) VALUE
- func (v VALUE) Marshal(m *Marshaler) *Marshaler
- func (v VALUE) New(init ...bool) VALUE
- func (v VALUE) NewDeep() VALUE
- func (v VALUE) Pointer() unsafe.Pointer
- func (v VALUE) PointerTo() VALUE
- func (v VALUE) PtrKind() KIND
- func (v VALUE) Reflect() reflect.Value
- func (v VALUE) SLICE() SLICE
- func (v VALUE) STRING() STRING
- func (v VALUE) STRUCT() STRUCT
- func (v VALUE) Scan(dest any, tags ...string)
- func (v VALUE) Set(a any) VALUE
- func (v VALUE) SetIndex(key any, val any) VALUE
- func (v VALUE) SetType() VALUE
- func (v VALUE) String() string
- func (v VALUE) StructField(f string) FIELD
- func (v VALUE) TIME() TIME
- func (v VALUE) TYPE() *TYPE
- func (v VALUE) TypeMatch(a any) bool
- func (v VALUE) UINT() UINT
- func (v VALUE) UUID() UUID
- func (v VALUE) Uint() uint
- func (v VALUE) Uintptr() uintptr
- type Weekday
Constants ¶
const ( ISO8601N = `2006-01-02 15:04:05.000000000` ISO8601 = `2006-01-02 15:04:05.000` SqlDate = `2006-01-02T15:04:05Z` TimeFormat = `2006-01-02 15:04:05` DateFormat = `2006-01-02` )
const ( Nanosecond Duration = 1 Microsecond = 1000 * Nanosecond Millisecond = 1000 * Microsecond Second = 1000 * Millisecond Minute = 60 * Second Hour = 60 * Minute )
const (
KindDirectIface = 1 << 5
)
Variables ¶
var ( JsonMarshaler = &Marshaler{ Type: "json", FormatWithSpaces: true, CascadeOnlyDeep: true, QuotedKey: true, QuotedString: true, ExcludeZeros: true, Space: []byte(" \t\n\v\f\r"), Indent: []byte(" "), Quote: []byte(`"`), Escape: []byte(`\`), ValEnd: []byte(","), KeyEnd: []byte(":"), BlockCommentStart: []byte("/*"), BlockCommentEnd: []byte("*/"), LineCommentStart: []byte("//"), LineCommentEnd: []byte("\n"), SliceStart: []byte("["), SliceEnd: []byte("]"), MapStart: []byte("{"), MapEnd: []byte("}"), } YamlMarshaler = &Marshaler{ Type: "yaml", Format: true, FormatWithSpaces: true, QuotedSpecial: true, ExcludeZeros: true, Space: []byte(" \t\v\f\r"), Indent: []byte(" "), Quote: []byte(`"'`), Escape: []byte(`\`), KeyEnd: []byte(":"), LineCommentStart: []byte("#"), LineCommentEnd: []byte("\n"), SliceItem: []byte("- "), InlineSyntax: &InlineSyntax{ ValEnd: []byte(", "), SliceStart: []byte("["), SliceEnd: []byte("]"), MapStart: []byte("{"), MapEnd: []byte("}"), }, } )
Functions ¶
func AppendBytes ¶ added in v0.0.19
AppendBytes appends bytes to a byte slice
func CharToByte ¶
func CoalesceStrings ¶
CoalesceStrings concatenates a series of strings into one string
func ContainsSpecial ¶ added in v0.0.19
func Copy ¶ added in v0.0.19
func Copy[T comparable](s []T) []T
Copy copies the contents of a slice into a new slice at a new mem address and returns the new slice
func DeepEqual ¶
DeepEqual reports whether x and y are “deeply equal”, as defined by golang reflect package
func Format ¶
Format inserts a into string format, similar to fmt.Sprintf TODO: optimize performance with alternative to fmt.Sprintf
func GenError ¶
GenError returns a formatted error message with source of error 'callOffset' indicates proceeding calls where the error orinigated 'callOffset' should be 0 if error occured in call to current function
func GobDecode ¶
GobDecode decodes []byte to a provided dest using golang encoding/gob; dest must be a pointer and match []byte origine type
func IsJsonable ¶
IsJsonable evaluate whether a can be converted to Json
func IsSpecialChar ¶ added in v0.0.19
func IsWhitespace ¶
func JoinByteSlices ¶
JoinByteSlices concatenates the bytes slices to create a new byte slice; The separator sep is placed between elements in the resulting slice
func JoinBytesSep ¶
JoinBytesSep concatenates the bytes to create a new byte slice; The separator sep is placed between elements in the resulting slice
func JoinStrings ¶
Join concatenates the elements of its first argument to create a single string. The separator Str sep is placed between elements in the resulting string.
func MatchBytes ¶ added in v0.0.19
func MustFloatAdd ¶
MustFloatAdd panic if x + y exceeds math.MaxFloat64 (positive or negative)
func MustFloatMultiply ¶
MustIntMultiply panic if x * y exceeds math.MaxFloat64 (positive or negative)
func MustFloatPow ¶
MustFloatPow panic if x ^ y exceeds math.MaxFloat64 (positive or negative)
func MustIntAdd ¶
MustIntAdd panic if x + y exceeds math.MaxInt (positive or negative)
func MustIntMultiply ¶
MustIntMultiply panic if x * y exceeds math.MaxInt (positive or negative)
func MustIntPow ¶
MustIntPow panic if x ^ y exceeds math.MaxInt (positive or negative)
func ParamError ¶
ParamError returns error message for expected and received type differences "[error location]: param type error expected type: 'e' received type: 'r'"
func PrintStats ¶
func PrintStats(a any)
PrintStats prints stats about a to the console, including the line where PrintStats was called, Type, gotype DataType, and value
func RepeatBytes ¶ added in v0.0.19
RepeatBytes returns a new byte slice consisting of count copies of bytes
func StringsInStrings ¶
StringsInStrings evaluates whether all x's exist in y's
func StructTypeMatch ¶ added in v0.0.31
StructTypeMatch compairs the structure of 2 structs
Types ¶
type ARRAY ¶
type ARRAY VALUE
func (ARRAY) ForEach ¶
ForEach executes function f on each item in ARRAY, note: k equals "" at each item
func (ARRAY) Scan ¶
Scan reads the values of ARRAY into the provided destination pointer, the number of elements in dest must be greater than or equal to the number of elements in ARRAY, otherwise Scan will panic
func (ARRAY) Set ¶
Set updates the value at index i to value v, returns the ARRAY with the updated value
type BOOL ¶
type BOOL bool
type BYTES ¶
type BYTES []byte
func (BYTES) CanInt ¶
CanInt evaluates whether BYTES can be written as Int, Int8, Int16, Int32 or Int64
func (BYTES) CanUint ¶
CanUint evaluates whether BYTES can be written as Uint, Uint8, Uint16, Uint32 or Uint64
func (BYTES) CanUuid ¶
CanUuid evaluates whether BYTES can be written as a uuid version 1-5, variant 1
func (BYTES) InBytes ¶ added in v0.0.19
InBytes evaluates if BYTES slice matches any of the bytes slices
func (BYTES) MustBool ¶
func (b BYTES) MustBool()
MustBool panics for bytes cannot be converted to bool
func (BYTES) MustFloat ¶
func (b BYTES) MustFloat()
MustFloat panics for bytes cannot be converted to float64
func (BYTES) MustString ¶
func (b BYTES) MustString()
MustString panics for bytes cannot be converted to utf8 string
func (BYTES) MustUuid ¶
func (b BYTES) MustUuid()
MustUuid panics for bytes cannot be converted to uuid
type Duration ¶
Duration represents the elapsed time between two Times as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
func (Duration) Milliseconds ¶
func (Duration) Nanoseconds ¶
type ENCODING ¶
type ENCODING []byte
ENCODING contains a gotype byte encoding for storing to disk or for other future decoding to golang types
func EncodeNumCompressed ¶
EncodeNumCompressed returns the byte encoding from a value of a number compressed to the smallest size repreentation of that number
func (ENCODING) Decode ¶
Decode decodes encoding and inserts values into pointer dest panics if dest format does not match encoding
func (ENCODING) Decodex ¶
func (e ENCODING) Decodex() decodex
Decodex returns the Value and Kind and number of bytes of an encoding returns structs as []any of the struct values and panics if encoding cannot be decoded (or is corrupt)
func (ENCODING) LenAtLeast ¶
LenAtLeast panics if length of encoding is less than l
type FIELD ¶
type FIELD struct {
// contains filtered or unexported fields
}
func (FIELD) SubTag ¶
SubTag returns the value of a given subTag in the given tag SubTag("db","name") returns "colname" from tag `db:"name:'colname'"`
type FLOAT ¶
type FLOAT float64
func (FLOAT) IsNegative ¶
type FieldType ¶ added in v0.0.18
type FieldType struct {
// contains filtered or unexported fields
}
type Gmap ¶ added in v0.0.19
type Gmap []GmapEl
Gmap is in essences an ordered map
func (*Gmap) SortByKeys ¶ added in v0.0.19
type Holidays ¶
type Holidays struct {
List []Holiday
}
func GetUsHolidays ¶
func GetUsHolidays() Holidays
type INT ¶
type INT int
func (INT) IsNegative ¶
type InlineSyntax ¶ added in v0.0.19
type InlineSyntax struct { ValEnd []byte // the characters that separate values SliceStart []byte // the characters that start a slice or array SliceEnd []byte // the characters that end a slice or array MapStart []byte // the characters that start a hash map MapEnd []byte // the characters that end a hash map }
type JSON ¶
type JSON []byte
func (JSON) Format ¶
Format retenders JSON as string with line breaks and indents, indents representing the number of spaces per indent and breaking each element in a list onto its own line if breakList is true
func (JSON) Scan ¶
Scan reads gotype JSON into the struct provided if tag is empty, Field names will be used to read JSON keys into dest Struct
type Location ¶
Location maps time instants to the zone in use at that time. Typically, the Location represents the collection of time offsets in use in a geographical area. For many Locations the time offset varies depending on whether daylight savings time is in use at the time instant.
type MAP ¶
type MAP VALUE
func (MAP) ForEach ¶
ForEach executes function f on each item in ARRAY, note: i is not a fixed value and may change across items
func (MAP) Index ¶
Index returns the value found at key k of Map returns nil pointer if key does not exist
func (MAP) Scan ¶
Scan reads gotype MAP into the struct pointer dest, if tag is empty, Field names will be used to read Map keys into Struct
func (MAP) StructTagged ¶
StructTagged returns gotype MAP scanned into gotype Struct with keys as tags with the tag lable provieded
type Marshaler ¶ added in v0.0.31
type Marshaler struct { // marshaling syntax Type string // the type of marshaller. json, yaml, etc. Space []byte // the space characters LineBreak []byte // the line break characters Indent []byte // the indentation characters Quote []byte // the quote characters, first is default, additional are alternate Escape []byte // the escape characters for string special char escape Null []byte // the null value ValEnd []byte // the characters that separate values KeyEnd []byte // the characters that separate keys and values BlockCommentStart []byte // the characters that start a block comment BlockCommentEnd []byte // the characters that end a block comment LineCommentStart []byte // the characters that start a single line comment LineCommentEnd []byte // the characters that end a single line comment SliceStart []byte // the characters that start a slice or array SliceEnd []byte // the characters that end a slice or array SliceItem []byte // the characters before each slice element MapStart []byte // the characters that start a hash map MapEnd []byte // the characters that end a hash map InlineSyntax *InlineSyntax // marshaling flags Format bool // when true, marshal with formatting, indentation, and line breaks FormatWithSpaces bool // when true, marshal with space between keys and values CascadeOnlyDeep bool // when true, marshal single-depth slices and maps with inline syntax QuotedKey bool // when true, marshal map keys with quotes QuotedString bool // when true, marshal strings with quotes QuotedSpecial bool // when true, marshal strings with quotes if they contain special characters QuotedNum bool // when true, marshal numbers with quotes QuotedBool bool // when true, marshal bools with quotes QuotedNull bool // when true, marshal null with quotes RecursiveName bool // when true, include name, string or type of recursive value in marshalling, otherwise, exclude all recursion UnmarshalTyped bool // when true, unmarshal to typed values (int, float64, bool, string) instead of just strings MarshalMethods bool // when true, marshal structs with a Marshal method by calling the method ExcludeZeros bool // when true, exclude zero and nil values from marshalling // contains filtered or unexported fields }
func (*Marshaler) ResetCursor ¶ added in v0.0.31
func (m *Marshaler) ResetCursor()
func (*Marshaler) SetBuffer ¶ added in v0.0.31
first arg should be the buffer to append, or not, to replace the buffer
func (*Marshaler) UnmarshalTo ¶ added in v0.0.31
type SLICE ¶
type SLICE VALUE
func (SLICE) Append ¶
Append adds x values to the end of an existing SLICE panics x does not match slice type
func (SLICE) ForEach ¶
ForEach executes function f on each item in SLICE, note: k equals "" at each item
func (SLICE) MapKeys ¶
MapKeys returns a Map of the values of SLICE mapped to keys in the provided SLICE
func (SLICE) MapKeysMap ¶
MapKeys returns a Map of the values of SLICE mapped to keys in the provided SLICE
func (SLICE) MapValues ¶
MapValues returns a Map of SLICE as keys mapped to values in the provided SLICE
func (SLICE) MapValuesMap ¶
MapValues returns a Map of SLICE as keys mapped to values in the provided SLICE
func (SLICE) Scan ¶
Scan reads the values of SLICE into the provided destination pointer, the number of elements in dest must be greater than or equal to the number of elements in SLICE, otherwise Scan will panic
func (SLICE) ScanList ¶
ScanList reads values of a SLICE of data records into the provided destination pointer of a list of structs, or struct pointer
func (SLICE) Set ¶
Set updates the value at index i to value v, returns the SLICE with the updated value
func (SLICE) SortComplex ¶
SortComplex sorts SLICE in progressive order of numbers, time and strings while keeping DataTypes consistent NOTE: this sort is resource intensive, use DataType specific sort for less costly sorting
func (SLICE) SortFloats ¶
SortFloats sorts SLICE by first converting all values to float and then returning a new []float64 in sort order
func (SLICE) SortInts ¶
SortInts sorts SLICE by first converting all values to int and then returning a new []int in sort order
func (SLICE) SortStrings ¶
SortStrs sorts SLICE by first converting all values to string and then returning a new []string in sort order
func (SLICE) Strings ¶
Strings returns SLICE as []string panics if cannot convert an element to string
type STRING ¶
type STRING string
func (STRING) CanParseFloat ¶
CanFloat evaluates whether STRING can be parsed to Float (parses commas and converts parenthesis to negative num) returns gotype STRING as float64
func (STRING) CanTime ¶
CanTime evaluates whether STRING can convert to Time returns gotype STRING as gotype Time panics if STRING is not formatted as date or time
func (STRING) ContainsAny ¶
ContainsAny evaluates whether stromg contains any char in chars
func (STRING) EscapedSplit ¶
EscapedSplit splits string 's' into []string of substrings between 'sep', unless 'sep' is contained within quotes in string 's'
func (STRING) GetSerialValue ¶
func (STRING) IndexOf ¶
IndexOf returns the index of the first instance of substr or -1 if substr is not present in string
func (STRING) IndexOfAny ¶
IndexOfAny returns the index of the first instance of any char in chars or -1 if substr is not present in string
func (STRING) LastIndexOf ¶
LastIndexOf returns the index of the last instance of substr or -1 if substr is not present in string
func (STRING) LastIndexOfAny ¶
LastIndexOfAny returns the index of the last instance of any char in chars or -1 if substr is not present in string
func (STRING) ParseFloat ¶
Float returns gotype STRING as a gotype Float (parses commas and converts parenthesis to negative num)
func (STRING) ParseTime ¶
Time returns gotype STRING as gotype Time panics if STRING is not formatted as date or time: 2006-01-02 [15:04:05.000]
func (STRING) RegexFind ¶
RegexFind slices string into substrings that match the regex, up to N number of matches in string (or all if N < 0), and returns a slice of the substrings of those regex matches
func (STRING) RegexMatch ¶
RegexMatch evaluates whether string contains any match of the regex
func (STRING) RegexReplace ¶
RegexReplace replaces all matches of regex in string with repl, up to N number of matches in string (or all if N < 0), and returns new Str containing replacements
func (STRING) RegexSplit ¶
RegexSplit slices Str into substrings separated by the regex, up to N number of occurances of regex matched in string (or all if N < 0) and returns a slice of the substrings between (and not including) those regex matches
func (STRING) RemoveWhitespace ¶
RemoveWhitespace removes all spaces and breaks in Str not contained within quotes returns error if no all quotes are paired
func (STRING) Replace ¶
Replace replaces all matches of old in string with new, up to N number of matches in string (or all if N < 0), and returns new string containing replacements
func (STRING) Split ¶
Split slices string into substrings separated by sep, up to N number of occurances of sep matched in string (or all if N < 0) and returns a slice of the substrings between (and not including) those sep matches
func (STRING) TIME ¶
Time returns gotype STRING as gotype Time panics if STRING is not formatted as date or time: 2006-01-02 [15:04:05.000]
func (STRING) ToPascal ¶
ToPascal converts STRING example_string to pascal case format ExampleString
func (STRING) ToPhrase ¶
ToPhrase converts STRING exampleString to phrase case format Example string and if case sensative 'c', creating new word at each capital letter
func (STRING) TrimWhitespace ¶
TrimWhitespace removes all spaces, tabs and breaks in Str not contained within quotes panics if no all quotes are paired
func (STRING) UnmarshalJson ¶ added in v0.0.19
UnmarshalJson converts a json serialized STRING to a map or slice, respectively
func (STRING) UnmarshalJsonList ¶ added in v0.0.19
func (STRING) UnmarshalJsonMap ¶ added in v0.0.19
type STRUCT ¶
type STRUCT VALUE
func (*STRUCT) FieldIndex ¶
FieldIndex returns an index of field names in the Struct to Fields
func (STRUCT) FieldNames ¶
FieldNames returns a []string of names of fields in struct
func (STRUCT) ForEach ¶
ForEach executes function f on each item in STRUCT, note: f is the field name
func (STRUCT) ForFields ¶
ForFields executes function f on each field in STRUCT; note: f is the struct field; tag and name are populated when inclDetail is true
func (STRUCT) MapByTagMap ¶
func (STRUCT) ReflectType ¶
ReflectType returns the reflect.Type of gotype STRUCT
func (STRUCT) ReflectValue ¶
ReflectValue returns the reflect.Value of gotype STRUCT
func (STRUCT) Scan ¶
Scan reads the values of STRUCT into the provided Struct pointer dest by mapping the field names (or field tags) to those of the dest Struct
func (STRUCT) Set ¶
Set updates the value at index i to value v, returns the StrUCT with the updated value
func (*STRUCT) SubTagIndex ¶
SubTagIndex returns an index of subtag values to Field in the Struct returns field names as keys if subtag value is not unique across fields
type StrFormat ¶
type StrFormat uint8
StrFormat represents the case format of a string Pascal: ExampleStr Camel: exampleStr Snake: example_string Phrase: Example string
type TIME ¶
func ColumbusDay ¶
ColumbusDay returns the date of Columbus Day for year 'y'
func GoodFriday ¶
GoodFriday returns the date of good friday for year 'y'
func HolidayObserved ¶
HolidayObserved returns the date holiday 'h' is observed, Friday if on Saturday and Monday if on Sunday
func InagurationDay ¶
InagurationDay returns the date of the presidential inaguration for year 'y'
func IndependenceDay ¶
IndependenceDay returns the observed date for US Independence Day for year 'y'
func Instance ¶
Instance returns the date of the 'i' instance of weekday 'wd' in month 'm' of year 'y'; if i < 0 returns the last instance, and panics if 'i' is 0 or exceeds the number of instances
func MemorialDay ¶
MemorialDay returns the date of Memorial Day for year 'y'
func NationalIndependenceDay ¶
NationalIndependenceDay returns the observed date for Junteenth National Independence Day for year 'y'
func PresidentsDay ¶
PresidentsDay returns the date of President's Day (or Washington's Birthday) for year 'y'
func Thanksgiving ¶
Thanksgiving returns the date of Thanksgiving Day for year 'y'
func VeteransDay ¶
VeteransDay returns the observed date for Veterans Day for year 'y'
func (TIME) Bytes ¶
Bytes returns gotype TIME as []byte by first converting to int64 of nanoseconds and then to []byte
func (TIME) DaysInMonth ¶
DaysInMonth returns the number of calendar days in month of TIME 't'
func (TIME) MonthStart ¶
MonthStart returns the first date of the month for time 't'
func (TIME) MonthsSince ¶
MonthsSince returns the number of full Months since lt until time t
func (TIME) Nanosecond ¶
func (TIME) QuarterEnd ¶
QuarterEnd returns the last nanosecond of the quarter for time 't' with year ending in month 'ye'
func (TIME) QuarterStart ¶
QuarterStart returns the first date of the quarter for time 't' with year ending in month 'ye'
func (TIME) YearEnd ¶
YearEnd returns the last nanosecond of the year for time 't' with year ending in month 'ye'
func (TIME) YearStart ¶
YearStart returns the first date of the year for time 't' with year ending in month 'ye'
func (TIME) YearsSince ¶
YearsSince returns the number of full Years since lt until time t
type TYPE ¶ added in v0.0.4
type TYPE struct {
// contains filtered or unexported fields
}
func FromReflectType ¶ added in v0.0.11
FromReflectType returns the gotype of reflect.Type t
func (*TYPE) DeepPtrElem ¶ added in v0.0.27
func (*TYPE) Field ¶ added in v0.0.11
Field returns the TYPE of the field at index i in a struct TYPE
func (*TYPE) FieldByIndex ¶ added in v0.0.11
FieldByIndex returns the TYPE of the field at index in a struct TYPE
func (*TYPE) FieldByName ¶ added in v0.0.11
FieldByName returns the TYPE of the field with name in a struct TYPE
func (*TYPE) FieldByTag ¶ added in v0.0.11
FieldByTag returns the TYPE of the field with tag value in a struct TYPE
func (*TYPE) FieldIndex ¶ added in v0.0.16
FieldIndex returns the index of the field with name in a struct TYPE
func (*TYPE) FieldName ¶ added in v0.0.11
FieldName returns the name of the field at index i in a struct TYPE
func (*TYPE) FieldTag ¶ added in v0.0.11
FieldTag returns the tag of the field with name in a struct TYPE
func (*TYPE) FieldTagValue ¶ added in v0.0.11
FieldTagValue returns the value of the tag of the field with name in a struct TYPE
func (*TYPE) ForFields ¶ added in v0.0.11
ForFields iterates over the fields of a struct TYPE and calls the function f with the index and TYPE of each field
func (*TYPE) HasDataElem ¶ added in v0.0.19
func (*TYPE) HasDataField ¶ added in v0.0.19
HasDataField returns true if the struct TYPE has a field with a data type of array, chan, map, slice, struct, bytes or interface
func (*TYPE) IfaceIndir ¶ added in v0.0.4
IfaceIndir returns true if the TYPE is an indirect value
func (*TYPE) In ¶ added in v0.0.11
In returns the TYPE of the input parameter at index i in a func TYPE
func (*TYPE) IndexTag ¶ added in v0.0.15
IndexTag returns the tag of the field at index i in a struct TYPE
func (*TYPE) IndexTagValue ¶ added in v0.0.15
IndexTagValue returns the value of the tag of the field at index i in a struct TYPE
func (*TYPE) IsData ¶ added in v0.0.19
IsData returns true if the TYPE stores data which includes Array, Chan, Map, Slice, Struct, Bytes, Interface or is a pointer to one these types
func (*TYPE) KIND ¶ added in v0.0.4
KIND returns the gotype KIND of the TYPE which includes Bytes, Field, Time, Uuid
func (*TYPE) NameShort ¶ added in v0.0.13
NameShort returns the short name of the TYPE excluding the package path, module name and pointer indicator
func (*TYPE) NumOut ¶ added in v0.0.11
NumOut returns the number of output parameters in a func TYPE
func (*TYPE) Out ¶ added in v0.0.11
Out returns the TYPE of the output parameter at index i in a func TYPE
func (*TYPE) SoftMatch ¶ added in v0.0.31
SoftMatch evaluates whether typ matches the data type structure of TYPE t although maybe not identical
type UINT ¶
type UINT uint
type UUID ¶
type VALUE ¶
type VALUE struct {
// contains filtered or unexported fields
}
func FromReflect ¶
func (VALUE) Append ¶
Append adds the provided a to the end of a Slice, panics if VALUE is not a Slice
func (VALUE) BytesFixedLen ¶
BytesFixed returns the bytes from the value of a kind with a fixed number of bytes (eg. int)
func (VALUE) ForEach ¶
ForEach executes function f on each item in VALUE, where VALUE is an Array, Map, Slice, String, or Struct, k is "" for Array, Slice and String, i is not fixed for Maps
func (VALUE) HasDataElem ¶ added in v0.0.19
func (VALUE) Index ¶
Index returns the value found at index i of VALUE returns VALUE if not an Array, Map, Pointer, Slice, String or Struct does not panic if i is greater than len of VALUE
func (VALUE) InspectDataElems ¶ added in v0.0.19
func (VALUE) Len ¶
Len returns the number of items in VALUE panics if Value is not of a struct, array, map, slice, string
func (VALUE) MapIndex ¶
MapIndex returns the value found at index (key) i in map, panics if VALUE is not a map
func (VALUE) New ¶
New returns a new empty value of VALUE type, if ptr is nil and init != true, returns nil ptr
func (VALUE) NewDeep ¶
NewDeep returns a new empty value of VALUE type with matching number of elements and no nil spaces
func (VALUE) PointerTo ¶
PointerTo returns a pointer to the underlying value, if the value is a string, returns *string as VALUE
func (VALUE) Scan ¶
Scan reads the values of VALUE into the provided destination pointer, the VALUE must be a a struct, array, map, slice or pointer to one of these, the number of elements in dest must be greater than or equal to the number of elements in VALUE, otherwise Scan will panic
func (VALUE) SetIndex ¶
SetIndex sets the value of a key (or index) for a slice, array, map, struct or string
func (VALUE) StructField ¶
StructField returns the field with name f in struct, panics if VALUE is not a struct