Documentation ¶
Index ¶
- Constants
- func Allowable(pattern string) (min, max string)
- func GOBDecode(data []byte, src any, useValues ...bool) (err error)
- func GOBEncode(v any, useValues ...bool) (data []byte, err error)
- func IsPattern(str string) bool
- func JsonDecode(data []byte, v any) (err error)
- func JsonEncode(v any, pretty ...bool) (data []byte)
- func MSGPackDecode(data []byte, v any) (err error)
- func MSGPackEncode(v any) (data []byte, err error)
- func MapKeys[K comparable, V any](m map[K]V) (s []K)
- func MapToStruct(src Map, tags string) (newStruct reflect.Type)
- func MapValues[K comparable, V comparable](m map[K]V) (s []V)
- func Match(str, pattern string) bool
- func MatchLimit(str, pattern string, maxcomp int) (matched, stopped bool)
- func MsgDecode(data []byte, v any) (err error)
- func PopulateIntArray(count int) (r []int)
- type Arr
- func (a *Arr[T]) Contains(matcher ...T) (r bool)
- func (a *Arr[T]) Filter(cb func(int, T) bool) (r []T)
- func (a *Arr[T]) First() T
- func (a *Arr[T]) ForEach(cb func(int, T, []T))
- func (a *Arr[T]) Get(index int) (r T)
- func (a *Arr[T]) GoString() string
- func (a *Arr[T]) IndexOf(matcher T) (r int)
- func (a *Arr[T]) Insert(value T, index int) *Arr[T]
- func (a *Arr[T]) Last() T
- func (a *Arr[T]) Len() int
- func (a *Arr[T]) Map(cb func(int, T) T) (r []T)
- func (a *Arr[T]) MatchPattern(matcher string, result func(int, T)) (r bool)
- func (a *Arr[T]) Pop() (v T)
- func (a *Arr[T]) Push(value T) (index int)
- func (a *Arr[T]) Randomise() *Arr[T]
- func (a *Arr[T]) Remove(index int, count ...int) []T
- func (a *Arr[T]) Shift() (v T)
- func (a *Arr[T]) Sort(order string) *Arr[T]
- func (a *Arr[T]) String() string
- type Array
- type Bytes
- func (b Bytes) Append(data []byte) Bytes
- func (b Bytes) Clear()
- func (b Bytes) Contains(f []byte) (ok bool)
- func (b Bytes) Empty() bool
- func (b Bytes) Encode(v any) (r Bytes, err error)
- func (b Bytes) Find(value []byte) (start, end int, extract []byte)
- func (v Bytes) Float(i ...float64) (val Float)
- func (b Bytes) GoString() string
- func (b Bytes) Humanize() string
- func (v Bytes) Int(i ...int) (val Int)
- func (b Bytes) IsJSON() bool
- func (b Bytes) Join(src []Bytes, delim ...rune) (r Bytes)
- func (b Bytes) ReadFrom(r io.Reader) (int, error)
- func (b Bytes) Size() int
- func (b Bytes) Slice(pos int, length ...int) (data []byte)
- func (b Bytes) Split(delim ...rune) (r []Bytes)
- func (b Bytes) String() string
- func (v Bytes) UiInt64(i ...uint64) (val uint64)
- func (v Bytes) Uint16(i ...uint16) (val uint16)
- func (v Bytes) Uint32(i ...uint32) (val uint32)
- func (b Bytes) UnsafeString() string
- func (b Bytes) Write(value []byte) int
- func (b Bytes) WriteRune(r []rune) int
- func (b Bytes) WriteString(s string) int
- func (b Bytes) WriteTo(w io.Writer) (int, error)
- type Float
- type Int
- type MStructConfig
- type Map
- func (m Map) Bool(key string) bool
- func (m Map) ByKeyOrder(sel []string, cb func(int, string, any))
- func (m Map) Bytes(keys ...string) json.RawValue
- func (m Map) Call(key string, args ...any) (out any, err error)
- func (m Map) CanCall(key string) (r bool)
- func (m Map) Consume(v map[string]any) Map
- func (m Map) Decode(key string, dst any) (err error)
- func (m Map) DecodeBinary(data []byte) (mp Map, err error)
- func (m Map) Del(p string) (res Result)
- func (m Map) Diffs(src Map) (diff []string)
- func (m Map) Dom(tag string, inner ...string) (res string)
- func (m Map) Each(fn func(int, string, any) bool) (a []any)
- func (m Map) EncodeBinary(additional ...map[string][]rune) (data []byte, err error)
- func (m Map) EqualKeys(src Map) (r bool)
- func (m Map) ForEach(cb func(int, string, any))
- func (m Map) FromBytes(data []byte) (r Result)
- func (m Map) FromString(data string) (r Result)
- func (m Map) Get(p string, defaultValue ...any) (res Result)
- func (m Map) GetAsArray(jpath string) (res []Map)
- func (m Map) GetByIndex(i int) (k string, v any)
- func (m Map) HJSON(keys ...string) interface{}
- func (m Map) Has(keys ...string) bool
- func (m Map) Int(key string) int
- func (m Map) Interface(p string) (res any)
- func (m Map) Iterate(from string, cb func(string, Result) bool) (result Map)
- func (m Map) JSON(keys ...string) any
- func (m Map) JSON_Indent(keys ...string) any
- func (m Map) KeyMatch(pattern string) (key string, value any, ok bool)
- func (m Map) Keys() []string
- func (m Map) Length() int
- func (m Map) Map(key string) Map
- func (m Map) MatchesKey(pattern string, res func(k string, v any)) (ok bool)
- func (m Map) Merge(s ...Map) Map
- func (m Map) MergeStrict(s Map, excludes []string) Map
- func (m Map) Selective(keys ...string) (o Map)
- func (m Map) Set(p string, value interface{}) (res any)
- func (m Map) String(key string) string
- func (m Map) Values() *Arr[any]
- func (m Map) ValuesString() []string
- type RawValue
- type Result
- type SMap
- func (s *SMap[T, V]) Bytes(pretty ...bool) []byte
- func (s *SMap[T, V]) Delete(path string)
- func (s *SMap[T, V]) Get(path string) (val Result)
- func (s *SMap[T, V]) GetMany(path ...string) (val []Result)
- func (s *SMap[T, V]) Parse(val []byte) *SMap[T, V]
- func (s *SMap[T, V]) Set(path string, val V)
- func (s *SMap[T, V]) String(pretty ...bool) string
- type StringArray
Constants ¶
View Source
const ( FieldNameCamel uint8 = iota FieldNameSnake FieldNameKebab )
Variables ¶
This section is empty.
Functions ¶
func Allowable ¶ added in v0.1.5
Allowable parses the pattern and determines the minimum and maximum allowable values that the pattern can represent. When the max cannot be determined, 'true' will be returned for infinite.
func JsonDecode ¶
func JsonEncode ¶
func MSGPackDecode ¶ added in v0.1.5
func MSGPackEncode ¶ added in v0.1.5
func MapKeys ¶ added in v0.1.5
func MapKeys[K comparable, V any](m map[K]V) (s []K)
func MapValues ¶ added in v0.1.5
func MapValues[K comparable, V comparable](m map[K]V) (s []V)
func MatchLimit ¶ added in v0.1.5
func PopulateIntArray ¶ added in v0.1.5
Types ¶
type Arr ¶ added in v0.1.5
func (*Arr[T]) MatchPattern ¶ added in v0.1.5
type Bytes ¶
type Bytes []byte
func (Bytes) UnsafeString ¶ added in v0.1.5
func (Bytes) WriteString ¶ added in v0.1.5
type MStructConfig ¶ added in v0.1.5
type MStructConfig struct {
Tag string
}
type Map ¶
func (Map) ByKeyOrder ¶ added in v0.1.5
func (Map) DecodeBinary ¶ added in v0.1.5
func (Map) EncodeBinary ¶ added in v0.1.5
func (Map) FromString ¶ added in v0.1.5
func (Map) GetAsArray ¶ added in v0.1.5
func (Map) JSON_Indent ¶ added in v0.1.5
func (Map) MatchesKey ¶ added in v0.1.5
func (Map) ValuesString ¶ added in v0.1.5
Source Files ¶
Click to show internal directories.
Click to hide internal directories.