Versions in this module Expand all Collapse all v1 v1.0.0 May 13, 2023 Changes in this version + const CHARS + const PURE_LETTER_CHARS + const PURE_NUMBER_CHARS + type AnyType struct + func (at AnyType) Float(fromVal any, toVal *float64) (err error) + func (at AnyType) If(isTrue bool, trueValue, falseValue any) any + func (at AnyType) InArray(item, stack any) bool + func (at AnyType) Int(fromVal any, toVal *int) error + func (at AnyType) Int64(fromVal any, toValue *int64) (err error) + func (at AnyType) Int64Array(arr []any, dstArr *[]int64) error + func (at AnyType) StructTo(src, dst any) error + func (at AnyType) Uint(fromVal any, toVal *uint) error + func (at AnyType) Uint64(fromVal any, toValue *uint64) (err error) + func (at AnyType) Uint64Array(arr []any, dstArr *[]uint64) error + type BoolType struct + func (bt BoolType) And(values ...bool) bool + func (bt BoolType) If(isTrue, trueValue, falseValue bool) bool + func (bt BoolType) Not(value bool) bool + func (bt BoolType) Or(values ...bool) bool + type FloatType struct + func (ft FloatType) Abs(value float64) float64 + func (ft FloatType) ArrayAsc(arr []float64) + func (ft FloatType) ArrayDesc(arr []float64) + func (ft FloatType) Avg(values ...float64) float64 + func (ft FloatType) BinFind(value float64, arr []float64, isAsc bool) int + func (ft FloatType) BinSearch(value float64, arr []float64, isAsc bool) int + func (ft FloatType) Ceil(value float64) float64 + func (ft FloatType) Find(value float64, arr []float64) int + func (ft FloatType) FindSorted(value float64, arr []float64, isAsc bool) int + func (ft FloatType) Floor(value float64) float64 + func (ft FloatType) If(isTrue bool, trueValue, falseValue float64) float64 + func (ft FloatType) InArray(value float64, arr []float64) bool + func (ft FloatType) InSortedArray(value float64, arr []float64, isAsc bool) bool + func (ft FloatType) LoopFind(value float64, arr []float64) int + func (ft FloatType) Max(values ...float64) float64 + func (ft FloatType) Min(values ...float64) float64 + func (ft FloatType) Round(value float64, places int) float64 + func (ft FloatType) SortAndBinSearch(value float64, arr []float64) int + func (ft FloatType) Str(value float64) string + func (ft FloatType) Sum(values ...float64) float64 + type IntType struct + func (it IntType) Abs(value int64) int64 + func (it IntType) ArrayAsc(arr []int64) + func (it IntType) ArrayDesc(arr []int64) + func (it IntType) Avg(values ...int64) float64 + func (it IntType) BinFind(value int64, arr []int64, isAsc bool) int + func (it IntType) BinSearch(value int64, arr []int64, isAsc bool) int + func (it IntType) ConvertTo(from int64, toVal any) error + func (it IntType) Find(value int64, arr []int64) int + func (it IntType) FindSorted(value int64, arr []int64, isAsc bool) int + func (it IntType) If(isTrue bool, trueValue, falseValue int64) int64 + func (it IntType) InArray(value int64, arr []int64) bool + func (it IntType) InInt16Range(val int64) bool + func (it IntType) InInt32Range(val int64) bool + func (it IntType) InInt8Range(val int64) bool + func (it IntType) InIntRange(val int64) bool + func (it IntType) InRange(value, min, max int64) bool + func (it IntType) InSortedArray(value int64, arr []int64, isAsc bool) bool + func (it IntType) InUint16Range(val int64) bool + func (it IntType) InUint32Range(val int64) bool + func (it IntType) InUint64Range(val int64) bool + func (it IntType) InUint8Range(val int64) bool + func (it IntType) InUintRange(val int64) bool + func (it IntType) IsEven(value int64) bool + func (it IntType) IsOdd(value int64) bool + func (it IntType) LoopFind(value int64, arr []int64) int + func (it IntType) Max(values ...int64) int64 + func (it IntType) Min(values ...int64) int64 + func (it IntType) SortAndBinSearch(value int64, arr []int64) int + func (it IntType) Str(value int64) string + func (it IntType) Sum(values ...int64) int64 + type StrType struct + func (st StrType) ArrayAsc(arr []string) + func (st StrType) ArrayDesc(arr []string) + func (st StrType) BinFind(value string, arr []string, isAsc bool) int + func (st StrType) BinSearch(value string, arr []string, isAsc bool) int + func (st StrType) Bool(str string, errBool bool) bool + func (st StrType) Find(value string, arr []string) int + func (st StrType) FindSorted(value string, arr []string, isAsc bool) int + func (st StrType) Float(str string, errValue float64) float64 + func (st StrType) Format(format string, a ...any) string + func (st StrType) HasPrefix(str, prefix string) bool + func (st StrType) HasSuffix(str, suffix string) bool + func (st StrType) If(boolValue bool, trueValue, falseValue string) string + func (st StrType) InArray(value string, arr []string) bool + func (st StrType) InSortedArray(value string, arr []string, isAsc bool) bool + func (st StrType) Index(str, substr string) int + func (st StrType) Int(str string, errValue int) int + func (st StrType) IsEmpty(value string) bool + func (st StrType) IsInt(str string) bool + func (st StrType) IsNum(str string) bool + func (st StrType) Join(strs []string, sep string) string + func (st StrType) Len(str string) int + func (st StrType) LoopFind(value string, arr []string) int + func (st StrType) LowerFirst(str string) string + func (st StrType) Ltrim(str, charsets string) string + func (st StrType) Pint(str string, errValue uint) uint + func (st StrType) Rand(length int) string + func (st StrType) RandChars(chars string, length int) (str string) + func (st StrType) RandLetters(length int) string + func (st StrType) RandNumbers(length int) string + func (st StrType) RegReplace(baseStr, regexpPattern, replacement string) string + func (st StrType) Replace(str, old, new string, n int) string + func (st StrType) Rtrim(str, charsets string) string + func (st StrType) SortAndBinSearch(value string, arr []string) int + func (st StrType) Split(str, sep string) []string + func (st StrType) Sub(str string, begin, length int) string + func (st StrType) Trim(str, charsets string) string + func (st StrType) TrimSpace(str string) string + func (st StrType) Uint(str string, errValue uint) uint + func (st StrType) UpperFirst(str string) string + type UintType struct + func (ut UintType) ArrayAsc(arr []uint64) + func (ut UintType) ArrayDesc(arr []uint64) + func (ut UintType) Avg(values ...uint64) float64 + func (ut UintType) BinFind(value uint64, arr []uint64, isAsc bool) int + func (ut UintType) BinSearch(value uint64, arr []uint64, isAsc bool) int + func (ut UintType) ConvertTo(from uint64, toValue any) error + func (ut UintType) Find(value uint64, arr []uint64) int + func (ut UintType) FindSorted(value uint64, arr []uint64, isAsc bool) int + func (ut UintType) If(isTrue bool, trueValue, falseValue uint64) uint64 + func (ut UintType) InArray(value uint64, arr []uint64) bool + func (ut UintType) InRange(value, min, max uint64) bool + func (ut UintType) InSortedArray(value uint64, arr []uint64, isAsc bool) bool + func (ut UintType) IsEven(value uint64) bool + func (ut UintType) IsOdd(value uint64) bool + func (ut UintType) LoopFind(value uint64, arr []uint64) int + func (ut UintType) Max(values ...uint64) uint64 + func (ut UintType) Min(values ...uint64) uint64 + func (ut UintType) SortAndBinSearch(value uint64, arr []uint64) int + func (ut UintType) Str(value uint64) string + func (ut UintType) Sum(values ...uint64) uint64