Versions in this module Expand all Collapse all v1 v1.1.35 May 11, 2024 v1.1.34 May 6, 2024 Changes in this version + const ForEachOperationBreak + const ForEachOperationContinue + const ForEachOperationRemove + const ForEachOperationRemoveBreak + type ForEachOperation int v1.1.33 Jan 7, 2024 Changes in this version + const APP_PORT + const AtSign + const AutoStr + const BACK_BrClose + const BACK_BrOpen + const BACK_Coma + const BACK_DDOT + const BACK_Ddot + const BACK_EQUALITY + const BACK_Equality + const BACK_FLAG + const BACK_Flag + const BACK_STR + const BACK_Str + const BackSlash + const Base16Bit + const Base32Bit + const Base4Bit + const Base64Bit + const Base8Bit + const BaseIndex + const BaseIndexStr + const BaseOneIndex + const BaseOneIndexStr + const BaseTen + const BaseThreeIndex + const BaseTimeOut + const BaseTwoIndex + const BracketClose + const BracketCloseChar + const BracketOpen + const BracketOpenChar + const CHAR_STR + const COMMAND_PREFIX1 + const COMMAND_PREFIX2 + const Coma + const ComaChar + const DPointChar + const DdotSign + const DotStr + const DoubleBackSlash + const DoubleQ + const DoubleQJ + const EMPTY + const EqualChar + const EqualStr + const FLAG_PREFIX + const FORMAT_VALUE + const FalseStr + const GET_SLASH + const HTTP_ADDRESS + const JA_BrClose + const JA_BrOpen + const JA_Coma + const JA_DDOT + const JA_Ddot + const JA_EQUALITY + const JA_Equality + const JA_FLAG + const JA_RealStr + const JA_STR + const JA_Str + const LIST_INDEX_NOTFOUND + const LineChar + const LineEscape + const LineStr + const LowerFalseStr + const LowerNo + const LowerOffStr + const LowerOnStr + const LowerTrueStr + const LowerYes + const No + const NullStr + const OffStr + const OnStr + const OrRegexp + const ParaClose + const ParaOpen + const Point + const R_ESCAPE + const SEMICOLON + const SPACE_VALUE + const STR_SIGN + const SUDO_PREFIX1 + const SingleQ + const SpaceChar + const Star + const TrueStr + const UNDER + const Yes + func AppendUnique[T comparable](slice []T, value ...T) []T + func AreEqual(s1, s2 *string) bool + func Clone[T any](value *T) *T + func FixSplit(myStrings []string) []string + func FixSplitWhite(myStrings []string) []string + func GetPrettyTimeDuration(d time.Duration, shorten bool) string + func IsAllLower(value string) bool + func IsAllNumber(str string) bool + func IsAllNumbers(str ...string) bool + func IsAllUpper(value string) bool + func IsEmpty(s *string) bool + func IsMixedCase(value string) bool + func IsRuneNumber(r rune) bool + func MakeSureNum(i, count int) string + func MakeSureNumCustom(i, count int, holder string) string + func ParseConfig(value interface{}, filename string) error + func RecoverPanic() + func Split(s string, separator ...string) []string + func SplitN(s string, n int, separators ...string) []string + func SplitSlice(s string, separators []string) []string + func SplitSliceN(s string, separators []string, n int) []string + func SplitSliceNWhite(s string, separators []string, n int) []string + func SplitWhite(s string, separator ...string) []string + func Title(value string) string + func ToArray(strs ...string) []string + func ToBase10[T rangeValues.Integer](value T) string + func ToBase16[T rangeValues.Integer](value T) string + func ToBase18[T rangeValues.Integer](value T) string + func ToBase20[T rangeValues.Integer](value T) string + func ToBase28[T rangeValues.Integer](value T) string + func ToBase30[T rangeValues.Integer](value T) string + func ToBase32[T rangeValues.Integer](value T) string + func ToBool(str string) bool + func ToInt16(value string) int16 + func ToInt32(value string) int32 + func ToInt64(value string) int64 + func ToInt8(value string) int8 + func ToInteger[T rangeValues.Integer](value string) T + func ToStrSlice(qs []QString) []string + func ToValidIntegerString(value string) string + func YesOrNo(v bool) string + type AdvancedMap struct + func NewAdvancedMap[TKey comparable, TValue any]() *AdvancedMap[TKey, TValue] + func (s *AdvancedMap[TKey, TValue]) Add(key TKey, value *TValue) + func (s *AdvancedMap[TKey, TValue]) AddList(keyGetter func(*TValue) TKey, elements ...TValue) + func (s *AdvancedMap[TKey, TValue]) AddPointerList(keyGetter func(*TValue) TKey, elements ...*TValue) + func (s *AdvancedMap[TKey, TValue]) Clear() + func (s *AdvancedMap[TKey, TValue]) Delete(key TKey) + func (s *AdvancedMap[TKey, TValue]) Exists(key TKey) bool + func (s *AdvancedMap[TKey, TValue]) ForEach(fn func(TKey, *TValue) bool) + func (s *AdvancedMap[TKey, TValue]) Get(key TKey) *TValue + func (s *AdvancedMap[TKey, TValue]) GetRandom() *TValue + func (s *AdvancedMap[TKey, TValue]) GetRandomKey() (key TKey, ok bool) + func (s *AdvancedMap[TKey, TValue]) GetRandomValue() TValue + func (s *AdvancedMap[TKey, TValue]) GetValue(key TKey) TValue + func (s *AdvancedMap[TKey, TValue]) IsEmpty() bool + func (s *AdvancedMap[TKey, TValue]) IsThreadSafe() bool + func (s *AdvancedMap[TKey, TValue]) IsValid() bool + func (s *AdvancedMap[TKey, TValue]) Length() int + func (s *AdvancedMap[TKey, TValue]) Set(key TKey, value any) + func (s *AdvancedMap[TKey, TValue]) SetDefault(value TValue) + func (s *AdvancedMap[TKey, TValue]) ToArray() []TValue + func (s *AdvancedMap[TKey, TValue]) ToList() GenericList[*TValue] + func (s *AdvancedMap[TKey, TValue]) ToNormalMap() map[TKey]TValue + func (s *AdvancedMap[TKey, TValue]) ToPointerArray() []*TValue + type BasicObject interface + IsEmpty func() bool + Length func() int + type BitsBlocks interface + GetBitsSize func() int + type BytesObject interface + Length func() int + ToBytes func() ([]byte, error) + type EndpointError struct + Date string + ErrorCode int + ErrorType int + Message string + Origin string + func (e *EndpointError) Error() string + type EndpointResponse struct + Error *EndpointError + Result *T + Success bool + type ExecuteCommandResult = shellUtils.ExecuteCommandResult + func RunCommand(command string) *ExecuteCommandResult + func RunCommandAsync(command string) *ExecuteCommandResult + func RunCommandAsyncWithChan(command string, finishedChan chan bool) *ExecuteCommandResult + func RunPowerShell(command string) *ExecuteCommandResult + func RunPowerShellAsyncWithChan(command string, finishedChan chan bool) *ExecuteCommandResult + type ExpiringValue struct + func NewEValue[T any](value T) *ExpiringValue[T] + func (e *ExpiringValue[T]) GetTime() time.Time + func (e *ExpiringValue[T]) GetValue() T + func (e *ExpiringValue[T]) IsExpired(duration time.Duration) bool + func (e *ExpiringValue[T]) Reset() + func (e *ExpiringValue[T]) SetTime(t time.Time) + func (e *ExpiringValue[T]) SetValue(value T) + type GenericList interface + Add func(elements ...T) + Append func(elements ...T) + AsArray func() []T + Change func(index int, element T) + Clear func() + Contains func(element T) bool + ContainsAll func(elements ...T) bool + ContainsOne func(elements ...T) bool + Count func(element T) int + Counts func(element ...T) int + Exists func(element T) bool + Find func(element T) int + Get func(index int) T + Remove func(element T) + RemoveAll func(element ...T) + RemoveAt func(index int) + RemoveOnce func(element T) + ToArray func() []T + func GetEmptyList[T comparable]() GenericList[T] + func GetListFromArray[T comparable](array []T) GenericList[T] + type Int16Container = rangeValues.IntContainer[int16] + type Int32Container = rangeValues.IntContainer[int32] + type Int64Container = rangeValues.IntContainer[int64] + type Int64UniqueIdContainer = UniqueIdContainer[int64] + type Int8Container = rangeValues.IntContainer[int8] + type IntegerRepresent interface + ToInt32 func() int32 + ToInt64 func() int64 + ToUInt32 func() uint32 + ToUInt64 func() uint64 + type ListW struct + func (l *ListW[T]) Add(elements ...T) + func (l *ListW[T]) Append(elements ...T) + func (l *ListW[T]) AsArray() []T + func (l *ListW[T]) Change(index int, element T) + func (l *ListW[T]) Clear() + func (l *ListW[T]) Contains(element T) bool + func (l *ListW[T]) ContainsAll(elements ...T) bool + func (l *ListW[T]) ContainsOne(elements ...T) bool + func (l *ListW[T]) Count(element T) int + func (l *ListW[T]) Counts(element ...T) int + func (l *ListW[T]) Exists(element T) bool + func (l *ListW[T]) Find(element T) int + func (l *ListW[T]) Get(index int) T + func (l *ListW[T]) IsEmpty() bool + func (l *ListW[T]) IsThreadSafe() bool + func (l *ListW[T]) IsValid() bool + func (l *ListW[T]) Length() int + func (l *ListW[T]) Remove(element T) + func (l *ListW[T]) RemoveAll(element ...T) + func (l *ListW[T]) RemoveAt(index int) + func (l *ListW[T]) RemoveOnce(element T) + func (l *ListW[T]) ToArray() []T + type MetaDataProvider interface + Get func(key string) (string, error) + GetBool func(key string) (bool, error) + GetBoolNoErr func(key string) bool + GetInt func(key string) (int, error) + GetInt16 func(key string) (int16, error) + GetInt16NoErr func(key string) int16 + GetInt32 func(key string) (int32, error) + GetInt32NoErr func(key string) int32 + GetInt64 func(key string) (int64, error) + GetInt64NoErr func(key string) int64 + GetInt8 func(key string) (int8, error) + GetInt8NoErr func(key string) int8 + GetIntNoErr func(key string) int + GetNoErr func(key string) string + GetUInt func(key string) (uint, error) + GetUInt16 func(key string) (uint16, error) + GetUInt16NoErr func(key string) uint16 + GetUInt32 func(key string) (uint32, error) + GetUInt32NoErr func(key string) uint32 + GetUInt64 func(key string) (uint64, error) + GetUInt64NoErr func(key string) uint64 + GetUInt8 func(key string) (uint8, error) + GetUInt8NoErr func(key string) uint8 + GetUIntNoErr func(key string) uint + Set func(key, value string) + SetBool func(key string, value bool) + SetInt func(key string, value int) + SetInt16 func(key string, value int16) + SetInt32 func(key string, value int32) + SetInt64 func(key string, value int64) + SetInt8 func(key string, value int8) + SetUInt func(key string, value uint) + SetUInt16 func(key string, value uint16) + SetUInt32 func(key string, value uint32) + SetUInt64 func(key string, value uint64) + SetUInt8 func(key string, value uint8) + type NumIdGenerator struct + func NewNumIdGenerator[T rangeValues.Integer]() *NumIdGenerator[T] + func (n *NumIdGenerator[T]) Next() T + func (n *NumIdGenerator[T]) Reset() + func (n *NumIdGenerator[T]) SafeSet(current T) + func (n *NumIdGenerator[T]) Set(current T) + type QString interface + Contains func(...QString) bool + ContainsAll func(...QString) bool + ContainsStr func(...string) bool + ContainsStrAll func(...string) bool + GetIndexV func(int) rune + GetValue func() string + IsEqual func(QString) bool + LockSpecial func() + Replace func(qs, newS QString) QString + ReplaceStr func(qs, newS string) QString + Split func(...QString) []QString + SplitFirst func(qs ...QString) []QString + SplitN func(int, ...QString) []QString + SplitStr func(...string) []QString + SplitStrFirst func(...string) []QString + SplitStrN func(int, ...string) []QString + ToBool func() bool + Trim func(qs ...QString) QString + TrimPrefix func(...QString) QString + TrimPrefixStr func(...string) QString + TrimStr func(...string) QString + TrimSuffix func(...QString) QString + TrimSuffixStr func(...string) QString + UnlockSpecial func() + func Qsb(b []byte) QString + func Qss(s string) QString + func ToQSlice(strs []string) []QString + type RangeFloat64 = rangeValues.RangeFloat64 + type RangeInt = rangeValues.IntegerRange[int] + type RangeInt32 = rangeValues.IntegerRange[int32] + type RangeInt64 = rangeValues.IntegerRange[int64] + type SafeEMap struct + func NewSafeEMap[TKey comparable, TValue any]() *SafeEMap[TKey, TValue] + func (s *SafeEMap[TKey, TValue]) Add(key TKey, value *TValue) + func (s *SafeEMap[TKey, TValue]) AddList(keyGetter func(*TValue) TKey, elements ...TValue) + func (s *SafeEMap[TKey, TValue]) AddPointerList(keyGetter func(*TValue) TKey, elements ...*TValue) + func (s *SafeEMap[TKey, TValue]) Clear() + func (s *SafeEMap[TKey, TValue]) Delete(key TKey) + func (s *SafeEMap[TKey, TValue]) Disable() + func (s *SafeEMap[TKey, TValue]) DisableChecking() + func (s *SafeEMap[TKey, TValue]) DoCheck() + func (s *SafeEMap[TKey, TValue]) Enable() + func (s *SafeEMap[TKey, TValue]) EnableChecking() + func (s *SafeEMap[TKey, TValue]) Exists(key TKey) bool + func (s *SafeEMap[TKey, TValue]) ForEach(fn func(TKey, *TValue) bool) + func (s *SafeEMap[TKey, TValue]) Get(key TKey) *TValue + func (s *SafeEMap[TKey, TValue]) GetRandom() *TValue + func (s *SafeEMap[TKey, TValue]) GetRandomKey() (key TKey, ok bool) + func (s *SafeEMap[TKey, TValue]) GetRandomValue() TValue + func (s *SafeEMap[TKey, TValue]) GetValue(key TKey) TValue + func (s *SafeEMap[TKey, TValue]) HasValidTimings() bool + func (s *SafeEMap[TKey, TValue]) IsChecking() bool + func (s *SafeEMap[TKey, TValue]) IsDisabled() bool + func (s *SafeEMap[TKey, TValue]) IsEmpty() bool + func (s *SafeEMap[TKey, TValue]) IsThreadSafe() bool + func (s *SafeEMap[TKey, TValue]) IsValid() bool + func (s *SafeEMap[TKey, TValue]) Length() int + func (s *SafeEMap[TKey, TValue]) Set(key TKey, value any) + func (s *SafeEMap[TKey, TValue]) SetDefault(value TValue) + func (s *SafeEMap[TKey, TValue]) SetExpiration(duration time.Duration) + func (s *SafeEMap[TKey, TValue]) SetInterval(duration time.Duration) + func (s *SafeEMap[TKey, TValue]) SetOnExpired(event func(key TKey, value TValue)) + func (s *SafeEMap[TKey, TValue]) ToArray() []TValue + func (s *SafeEMap[TKey, TValue]) ToList() GenericList[*TValue] + func (s *SafeEMap[TKey, TValue]) ToNormalMap() map[TKey]TValue + func (s *SafeEMap[TKey, TValue]) ToPointerArray() []*TValue + type SafeMap struct + func NewSafeMap[TKey comparable, TValue any]() *SafeMap[TKey, TValue] + func (s *SafeMap[TKey, TValue]) Add(key TKey, value *TValue) + func (s *SafeMap[TKey, TValue]) AddList(keyGetter func(*TValue) TKey, elements ...TValue) + func (s *SafeMap[TKey, TValue]) AddPointerList(keyGetter func(*TValue) TKey, elements ...*TValue) + func (s *SafeMap[TKey, TValue]) Clear() + func (s *SafeMap[TKey, TValue]) Delete(key TKey) + func (s *SafeMap[TKey, TValue]) Disable() + func (s *SafeMap[TKey, TValue]) Enable() + func (s *SafeMap[TKey, TValue]) Exists(key TKey) bool + func (s *SafeMap[TKey, TValue]) ForEach(fn func(TKey, *TValue) bool) + func (s *SafeMap[TKey, TValue]) Get(key TKey) *TValue + func (s *SafeMap[TKey, TValue]) GetValue(key TKey) TValue + func (s *SafeMap[TKey, TValue]) IsDisabled() bool + func (s *SafeMap[TKey, TValue]) IsEmpty() bool + func (s *SafeMap[TKey, TValue]) IsThreadSafe() bool + func (s *SafeMap[TKey, TValue]) IsValid() bool + func (s *SafeMap[TKey, TValue]) Length() int + func (s *SafeMap[TKey, TValue]) Set(key TKey, value any) + func (s *SafeMap[TKey, TValue]) SetDefault(value TValue) + func (s *SafeMap[TKey, TValue]) ToArray() []TValue + func (s *SafeMap[TKey, TValue]) ToList() GenericList[*TValue] + func (s *SafeMap[TKey, TValue]) ToNormalMap() map[TKey]TValue + func (s *SafeMap[TKey, TValue]) ToPointerArray() []*TValue + type Serializer interface + Serialize func() ([]byte, error) + StrSerialize func() string + type SignatureContainer interface + GetSignature func() string + SetSignature func(signature string) bool + SetSignatureByBytes func(data []byte) bool + SetSignatureByFunc func(h func() hash.Hash) bool + type StringUniqueIdContainer = UniqueIdContainer[string] + type StrongString struct + func Sb(b []byte) StrongString + func Ss(s string) StrongString + func SsPtr(s string) *StrongString + func (s *StrongString) Contains(qs ...QString) bool + func (s *StrongString) ContainsAll(qs ...QString) bool + func (s *StrongString) ContainsStr(str ...string) bool + func (s *StrongString) ContainsStrAll(str ...string) bool + func (s *StrongString) GetIndexV(index int) rune + func (s *StrongString) GetValue() string + func (s *StrongString) HasPrefix(values ...string) bool + func (s *StrongString) HasPrefixes(values ...string) bool + func (s *StrongString) HasRunePrefix(values ...rune) bool + func (s *StrongString) HasRunePrefixes(values ...rune) bool + func (s *StrongString) HasSuffix(values ...string) bool + func (s *StrongString) HasSuffixes(values ...string) bool + func (s *StrongString) IsEmpty() bool + func (s *StrongString) IsEqual(q QString) bool + func (s *StrongString) Length() int + func (s *StrongString) LockSpecial() + func (s *StrongString) Replace(qs, newS QString) QString + func (s *StrongString) ReplaceStr(qs, newS string) QString + func (s *StrongString) Split(qs ...QString) []QString + func (s *StrongString) SplitFirst(qs ...QString) []QString + func (s *StrongString) SplitN(n int, qs ...QString) []QString + func (s *StrongString) SplitStr(qs ...string) []QString + func (s *StrongString) SplitStrFirst(qs ...string) []QString + func (s *StrongString) SplitStrN(n int, qs ...string) []QString + func (s *StrongString) ToBool() bool + func (s *StrongString) ToQString() QString + func (s *StrongString) Trim(qs ...QString) QString + func (s *StrongString) TrimPrefix(qs ...QString) QString + func (s *StrongString) TrimPrefixStr(qs ...string) QString + func (s *StrongString) TrimStr(qs ...string) QString + func (s *StrongString) TrimSuffix(qs ...QString) QString + func (s *StrongString) TrimSuffixStr(qs ...string) QString + func (s *StrongString) UnlockSpecial() + type UInt16Container = rangeValues.IntContainer[uint16] + type UInt32Container = rangeValues.IntContainer[uint32] + type UInt64Container = rangeValues.IntContainer[uint64] + type UInt8Container = rangeValues.IntContainer[uint8] + type UniqueIdContainer interface + GetUniqueId func() T + HasValidUniqueId func() bool + SetAsUniqueId func(value T) + type Validator interface + IsValid func() bool