Documentation
¶
Index ¶
- Constants
- Variables
- func ArrayToObject(dataArray any, targetPtrObj any) error
- func Associate[T any, K comparable, V any](list []T, transform func(T) Pair[K, V]) map[K]V
- func AssociateBy[T any, K comparable](list []T, keySelector func(T) K) map[K]T
- func AssociateByAndValue[T any, V any, K comparable](list []T, keySelector func(T) K, valueTransform func(T) V) map[K]V
- func AssociateByAndValueTo[T, V any, K comparable](list []T, destination *map[K]V, keySelector func(T) K, ...) map[K]V
- func AssociateByTo[T any, K comparable](list []T, destination *map[K]T, keySelector func(T) K) map[K]T
- func AssociateTo[T any, K comparable, V any](list []T, destination *map[K]V, transform func(T) Pair[K, V]) map[K]V
- func AssociateWith[T comparable, V any](list []T, valueSelector func(T) V) map[T]V
- func AssociateWithTo[T comparable, V any](list []T, destination *map[T]V, valueSelector func(T) V) map[T]V
- func BigCamel(word string) string
- func BigCamelToMiddleLine(word string) string
- func BigCamelToPostUnder(word string) string
- func BigCamelToPrePostUnder(word string) string
- func BigCamelToPreUnder(word string) string
- func BigCamelToSmallCamel(word string) string
- func BigCamelToUnderLine(word string) string
- func BigCamelToUpperMiddle(word string) string
- func BigCamelToUpperUnder(word string) string
- func Cast(fieldKind reflect.Kind, valueStr string) (any, error)
- func DataToObject(data any, targetPtrObj any) error
- func Drop[T any](list []T, n int) []T
- func DropLast[T any](list []T, n int) []T
- func DropLastWhile[T any](list []T, n int, predicate func(T) bool) []T
- func DropWhile[T any](list []T, n int, predicate func(T) bool) []T
- func Find[T any](list []T, f func(T) bool) *T
- func FindLast[T any](list []T, f func(T) bool) *T
- func First[T any](list []T) T
- func FirstOrNull[T any](list []T) *T
- func FormatSize(fileSize int64) (size string)
- func GetPrivateFieldValue(objPtrValue reflect.Value, fieldName string) interface{}
- func GetPropertiesItemLineList(content string) []string
- func GroupBy[T any, K comparable](list []T, keySelector func(T) K) (destination map[K][]T)
- func GroupByTo[T any, K comparable](list []T, dest *map[K][]T, keySelector func(T) K) (destination map[K][]T)
- func GroupByTransform[T any, K comparable, V any](list []T, keySelector func(T) K, trans func(T) V) map[K][]V
- func GroupByTransformTo[T any, K comparable, V any](list []T, dest *map[K][]V, keySelector func(T) K, trans func(T) V) map[K][]V
- func IfThen[T any](condition bool, trueVal T, falseVal T) T
- func IndexOf[T any](list []T, item T) int
- func IndexOfCondition[T any](list []T, f func(T) bool) int
- func Int(AStart, AEnd int) []int
- func Int64(AStart, AEnd int64) []int64
- func Int64Step(AStart, AEnd, AStep int64) []int64
- func IntStep(AStart, AEnd, AStep int) []int
- func IsBaseType(fieldType reflect.Type) bool
- func IsInSlice[T comparable](list []T, val T) bool
- func IsJson(content string) bool
- func IsNumber(fieldKing reflect.Kind) bool
- func IsPrivate(s string) bool
- func IsProperty(content string) bool
- func IsPublic(s string) bool
- func IsYaml(content string) bool
- func JsonToMap(contentOfJson string) (map[string]any, error)
- func JsonToYaml(contentOfJson string) (string, error)
- func KvToProperties(key, value string, valueType TypeEnum) (string, error)
- func Last[T any](list []T) T
- func LastIndexOf[T any](list []T, item T) int
- func LastIndexOfCondition[T any](list []T, f func(T) bool) int
- func LastOrNull[T any](list []T) *T
- func ListAll[T any](list []T, f func(T) bool) bool
- func ListAny[T any](list []T, f func(T) bool) bool
- func ListContains[T any](list []T, item T) bool
- func ListCount[T any](list []T, f func(T) bool) int
- func ListDistinct[T any](list []T) []T
- func ListEquals[T any](leftList []T, rightList []T) bool
- func ListFilter[T any](list []T, f func(T) bool) []T
- func ListFilterIndexed[T any](list []T, predicate func(int, T) bool) []T
- func ListFilterIndexedTo[T any](list []T, dest *[]T, predicate func(int, T) bool) []T
- func ListFilterNot[T any](list []T, predicate func(T) bool) []T
- func ListFilterNotIndexed[T any](list []T, f func(int, T) bool) []T
- func ListFilterNotIndexedTo[T any](list []T, dest *[]T, predicate func(int, T) bool) []T
- func ListFilterNotNull[T any](list []*T) []*T
- func ListFilterNotTo[T any](list []T, dest *[]T, predicate func(T) bool) []T
- func ListFilterTo[T any](list []T, dest *[]T, f func(T) bool) []T
- func ListFlatMap[T any, R any](list []T, f func(T) []R) []R
- func ListFlatMapIndexed[T any, R any](list []T, f func(int, T) []R) []R
- func ListFlatMapIndexedTo[T any, R any](list []T, dest *[]R, f func(int, T) []R) []R
- func ListFlatMapTo[T any, R any](list []T, dest *[]R, f func(T) []R) []R
- func ListFlattern[T any](list [][]T) []T
- func ListJoinToString[T any](list []T, f func(T) string) string
- func ListJoinToStringFull[T any](list []T, sep string, prefix string, postfix string, f func(T) string) string
- func ListMap[T any, R any](list []T, f func(T) R) []R
- func ListMapIndexed[T any, R any](list []T, f func(int, T) R) []R
- func ListMapIndexedNotNull[T any, R any](list []*T, f func(int, T) R) []R
- func ListMapIndexedNotNullTo[T any, R any](list []*T, dest *[]R, f func(int, T) R) []R
- func ListMapIndexedTo[T any, R any](list []T, dest *[]R, f func(int, T) R) []R
- func ListMapNotNull[T any, R any](list []*T, f func(T) R) []R
- func ListMapNotNullTo[T any, R any](list []*T, dest *[]R, f func(T) R) []R
- func ListMapTo[T any, R any](list []T, dest *[]R, f func(T) R) []R
- func ListMinus[T any](list []T, n []T) []T
- func ListNone[T any](list []T, f func(T) bool) bool
- func ListPlus[T any](list []T, n []T) []T
- func ListToMap[K comparable, V any](list []Pair[K, V]) map[K]V
- func LoadBanner(filePath string)
- func MapAll[K comparable, V any](m map[K]V, f func(K, V) bool) bool
- func MapAllKey[K comparable, V any](m map[K]V, f func(K) bool) bool
- func MapAllValue[K comparable, V any](m map[K]V, f func(V) bool) bool
- func MapAny[K comparable, V any](m map[K]V, f func(K, V) bool) bool
- func MapAnyKey[K comparable, V any](m map[K]V, f func(K) bool) bool
- func MapAnyValue[K comparable, V any](m map[K]V, f func(V) bool) bool
- func MapContains[K comparable, V any](m map[K]V, k K, v V) bool
- func MapContainsKey[K comparable, V any](m map[K]V, k K) bool
- func MapContainsValue[K comparable, V any](m map[K]V, v V) bool
- func MapCount[K comparable, V any](m map[K]V, f func(K, V) bool) int
- func MapCountKey[K comparable, V any](m map[K]V, f func(K) bool) int
- func MapCountValue[K comparable, V any](m map[K]V, f func(V) bool) int
- func MapEquals[K comparable, V any](leftMap map[K]V, rightMap map[K]V) bool
- func MapFilter[K comparable, V any](m map[K]V, f func(K, V) bool) map[K]V
- func MapFilterKeys[K comparable, V any](m map[K]V, f func(K) bool) map[K]V
- func MapFilterNot[K comparable, V any](m map[K]V, f func(K, V) bool) map[K]V
- func MapFilterNotTo[K comparable, V any](m map[K]V, dest *map[K]V, f func(K, V) bool) map[K]V
- func MapFilterTo[K comparable, V any](m map[K]V, dest *map[K]V, f func(K, V) bool) map[K]V
- func MapFilterValues[K comparable, V any](m map[K]V, f func(V) bool) map[K]V
- func MapFlatMap[K comparable, V any, R any](m map[K]V, f func(K, V) []R) []R
- func MapFlatMapTo[K comparable, V any, R any](m map[K]V, dest *[]R, f func(K, V) []R) []R
- func MapJoinToString[K comparable, V any](m map[K]V, f func(K, V) string) string
- func MapJoinToStringFull[K comparable, V any](m map[K]V, sep string, prefix string, postfix string, f func(K, V) string) string
- func MapMap[K comparable, V any, R any](m map[K]V, f func(K, V) R) []R
- func MapMapNotNull[K comparable, V any, R any](m map[K]*V, f func(K, V) R) []R
- func MapMapNotNullTo[K comparable, V any, R any](m map[K]*V, dest *[]R, f func(K, V) R) []R
- func MapMapTo[K comparable, V any, R any](m map[K]V, dest *[]R, f func(K, V) R) []R
- func MapMinus[K comparable, V any](m map[K]V, n map[K]V) map[K]V
- func MapNone[K comparable, V any](m map[K]V, f func(K, V) bool) bool
- func MapNoneKey[K comparable, V any](m map[K]V, f func(K) bool) bool
- func MapNoneValue[K comparable, V any](m map[K]V, f func(V) bool) bool
- func MapPlus[K comparable, V any](m map[K]V, n map[K]V) map[K]V
- func MapToObject(dataMap any, targetPtrObj any) error
- func MapToProperties(dataMap map[string]any) (string, error)
- func MiddleLine(word string) string
- func MiddleLineToBigCamel(word string) string
- func MiddleLineToSmallCamel(word string) string
- func ObjectToData(object any) any
- func ObjectToJson(object any) string
- func ObjectToYaml(value any) (string, error)
- func ParseByteSize(byteStr string) (size int64)
- func Partition[T any](list []T, partition int) [][]T
- func PartitionWithCal[T any](list []T, f func(int) int) [][]T
- func PostUnder(word string) string
- func PreFixUnderLine(word, preFix string) string
- func PreFixUnderToSmallCamel(word, preFix string) string
- func PrePostUnder(word string) string
- func PreUnder(word string) string
- func PrintBanner()
- func PropertiesEntityToYaml(properties Properties) (string, error)
- func PropertiesToMap(contentOfProperties string) (map[string]any, error)
- func PropertiesToYaml(contentOfProperties string) (string, error)
- func ReaderToObject(reader io.Reader, targetPtrObj any) error
- func Reduce[S any, T any](list []T, init func(T) S, f func(S, T) S) S
- func ReduceIndexed[S any, T any](list []T, init func(int, T) S, f func(int, S, T) S) S
- func SetFieldPrivateValue(objPtrValue reflect.Value, fieldName string, fieldNewValue reflect.Value)
- func Slice[T any](list []T, r IntRange) []T
- func SliceContains[T any, K comparable](list []T, predicate func(T) K, key K) bool
- func SliceDistinct[T any](list []T) []T
- func SliceDistinctTo[T any, V comparable](list []T, valueTransform func(T) V) []T
- func SliceTo[T any, K comparable](list []T, valueTransform func(T) K) map[K]T
- func SliceToMap[T comparable](list []T) map[T]T
- func StrToObject(contentOfJson string, targetPtrObj any) error
- func StreamDrain[T any](ch <-chan T)
- func SubList[T any](list []T, fromIndex int, toIndex int) []T
- func Take[T any](list []T, n int) []T
- func TakeLast[T any](list []T, n int) []T
- func TakeLastWhile[T any](list []T, n int, predicate func(T) bool) []T
- func TakeWhile[T any](list []T, n int, predicate func(T) bool) []T
- func ToBool(value any) bool
- func ToComplex64(value any) complex64
- func ToComplex128(value any) complex128
- func ToFloat32(value any) float32
- func ToFloat64(value any) float64
- func ToInt(value any) int
- func ToInt8(value any) int8
- func ToInt16(value any) int16
- func ToInt32(value any) int32
- func ToInt64(value any) int64
- func ToJsonString(value any) string
- func ToLowerFirstPrefix(dataStr string) string
- func ToMap(data any) map[string]any
- func ToString(value any) string
- func ToUInt(value any) uint
- func ToUInt8(value any) uint8
- func ToUInt16(value any) uint16
- func ToUInt32(value any) uint32
- func ToUInt64(value any) uint64
- func ToUpperFirstPrefix(dataStr string) string
- func ToUpperWord(regex, word string) string
- func ToValue(value any, valueKind reflect.Kind) (any, error)
- func UnderLine(word string) string
- func UnderLineToBigCamel(word string) string
- func UnderLineToSmallCamel(word string) string
- func UpperMiddleToBigCamel(word string) string
- func UpperUnder(word string) string
- func UpperUnderMiddle(word string) string
- func UpperUnderMiddleToSmallCamel(word string) string
- func UpperUnderToBigCamel(word string) string
- func UpperUnderToSmallCamel(word string) string
- func YamlCheck(content string) error
- func YamlToJson(contentOfYaml string) (string, error)
- func YamlToList(contentOfYaml string) ([]any, error)
- func YamlToMap(contentOfYaml string) (map[string]any, error)
- func YamlToProperties(contentOfYaml string) (string, error)
- func YamlToPropertiesWithKey(key string, contentOfYaml string) (string, error)
- type ChangeError
- type ConvertError
- type ISCChar
- func (i ISCChar) Code() int
- func (i ISCChar) DownStepTo(to rune, step int64) ISCList[rune]
- func (i ISCChar) DownTo(to rune) ISCList[rune]
- func (i ISCChar) IsDigit() bool
- func (i ISCChar) IsHighSurrogate() bool
- func (i ISCChar) IsISOControl() bool
- func (i ISCChar) IsLetter() bool
- func (i ISCChar) IsLetterOrDigit() bool
- func (i ISCChar) IsLowSurrogate() bool
- func (i ISCChar) IsLower() bool
- func (i ISCChar) IsSymbol() bool
- func (i ISCChar) IsTitle() bool
- func (i ISCChar) IsUpper() bool
- func (i ISCChar) IsWhitespace() bool
- func (i ISCChar) RangeStepTo(to rune, step int64) ISCList[rune]
- func (i ISCChar) RangeTo(to rune) ISCList[rune]
- func (i ISCChar) ToLower() ISCChar
- func (i ISCChar) ToString() ISCString
- func (i ISCChar) ToTitle() ISCChar
- func (i ISCChar) ToUpper() ISCChar
- type ISCFloat
- type ISCFloat64
- type ISCInt
- func (i ISCInt) DownStepTo(to int, step int) ISCList[int]
- func (i ISCInt) DownTo(to int) ISCList[int]
- func (i ISCInt) RangeStepTo(to int, step int) ISCList[int]
- func (i ISCInt) RangeTo(to int) ISCList[int]
- func (i ISCInt) RotateLeft(bitCount int) ISCInt
- func (i ISCInt) RotateRight(bitCount int) ISCInt
- func (i ISCInt) ToBinary() string
- func (i ISCInt) ToHex() string
- func (i ISCInt) ToOct() string
- func (i ISCInt) ToString() ISCString
- type ISCInt8
- func (i ISCInt8) DownStepTo(to int8, step int8) ISCList[int8]
- func (i ISCInt8) DownTo(to int8) ISCList[int8]
- func (i ISCInt8) RangeStepTo(to int8, step int8) ISCList[int8]
- func (i ISCInt8) RangeTo(to int8) ISCList[int8]
- func (i ISCInt8) RotateLeft(bitCount int8) ISCInt8
- func (i ISCInt8) RotateRight(bitCount int8) ISCInt8
- func (i ISCInt8) ToBinary() string
- func (i ISCInt8) ToHex() string
- func (i ISCInt8) ToOct() string
- func (i ISCInt8) ToString() ISCString
- type ISCInt16
- func (i ISCInt16) DownStepTo(to int16, step int16) ISCList[int16]
- func (i ISCInt16) DownTo(to int16) ISCList[int16]
- func (i ISCInt16) RangeStepTo(to int16, step int16) ISCList[int16]
- func (i ISCInt16) RangeTo(to int16) ISCList[int16]
- func (i ISCInt16) RotateLeft(bitCount int16) ISCInt16
- func (i ISCInt16) RotateRight(bitCount int16) ISCInt16
- func (i ISCInt16) ToBinary() string
- func (i ISCInt16) ToHex() string
- func (i ISCInt16) ToOct() string
- func (i ISCInt16) ToString() ISCString
- type ISCInt32
- func (i ISCInt32) DownStepTo(to int32, step int32) ISCList[int32]
- func (i ISCInt32) DownTo(to int32) ISCList[int32]
- func (i ISCInt32) RangeStepTo(to int32, step int32) ISCList[int32]
- func (i ISCInt32) RangeTo(to int32) ISCList[int32]
- func (i ISCInt32) RotateLeft(bitCount int32) ISCInt32
- func (i ISCInt32) RotateRight(bitCount int32) ISCInt32
- func (i ISCInt32) ToBinary() string
- func (i ISCInt32) ToHex() string
- func (i ISCInt32) ToOct() string
- func (i ISCInt32) ToString() ISCString
- type ISCInt64
- func (i ISCInt64) DownStepTo(to int64, step int64) ISCList[int64]
- func (i ISCInt64) DownTo(to int64) ISCList[int64]
- func (i ISCInt64) RangeStepTo(to int64, step int64) ISCList[int64]
- func (i ISCInt64) RangeTo(to int64) ISCList[int64]
- func (i ISCInt64) RotateLeft(bitCount int64) ISCInt64
- func (i ISCInt64) RotateRight(bitCount int64) ISCInt64
- func (i ISCInt64) ToBinary() string
- func (i ISCInt64) ToHex() string
- func (i ISCInt64) ToOct() string
- func (i ISCInt64) ToString() ISCString
- type ISCList
- func (l *ISCList[T]) Add(item T) int
- func (l *ISCList[T]) AddAll(item ...T)
- func (l ISCList[T]) All(f func(T) bool) bool
- func (l ISCList[T]) Any(f func(T) bool) bool
- func (l *ISCList[T]) Clear()
- func (l ISCList[T]) Contains(item T) bool
- func (l ISCList[T]) Count(f func(T) bool) int
- func (l *ISCList[T]) Delete(index int) T
- func (l ISCList[T]) Distinct() ISCList[T]
- func (l ISCList[T]) Drop(n int) ISCList[T]
- func (l ISCList[T]) DropLast(n int) ISCList[T]
- func (l ISCList[T]) DropLastWhile(n int, f func(T) bool) ISCList[T]
- func (l ISCList[T]) DropWhile(n int, f func(T) bool) ISCList[T]
- func (l ISCList[T]) Equals(n ISCList[T]) bool
- func (l ISCList[T]) Filter(f func(T) bool) ISCList[T]
- func (l ISCList[T]) FilterIndexed(f func(int, T) bool) ISCList[T]
- func (l ISCList[T]) FilterIndexedTo(dest *[]T, f func(int, T) bool) ISCList[T]
- func (l ISCList[T]) FilterNot(f func(T) bool) ISCList[T]
- func (l ISCList[T]) FilterNotIndexed(f func(int, T) bool) ISCList[T]
- func (l ISCList[T]) FilterNotIndexedTo(dest *[]T, f func(int, T) bool) ISCList[T]
- func (l ISCList[T]) FilterNotTo(dest *[]T, f func(T) bool) ISCList[T]
- func (l ISCList[T]) FilterTo(dest *[]T, f func(T) bool) ISCList[T]
- func (l ISCList[T]) Find(f func(T) bool) *T
- func (l ISCList[T]) FindLast(f func(T) bool) *T
- func (l ISCList[T]) First() T
- func (l ISCList[T]) FirstOrNull() *T
- func (l ISCList[T]) ForEach(f func(T))
- func (l ISCList[T]) ForEachIndexed(f func(int, T))
- func (l ISCList[T]) IndexOf(item T) int
- func (l ISCList[T]) IndexOfCondition(f func(T) bool) int
- func (l *ISCList[T]) Insert(index int, item T) int
- func (l ISCList[T]) IsEmpty() bool
- func (l ISCList[T]) JoinToString(f func(T) string) string
- func (l ISCList[T]) JoinToStringFull(sep string, prefix string, postfix string, f func(T) string) string
- func (l ISCList[T]) Last() T
- func (l ISCList[T]) LastIndexOf(item T) int
- func (l ISCList[T]) LastIndexOfCondition(f func(T) bool) int
- func (l ISCList[T]) LastOrNull() *T
- func (l ISCList[T]) Minus(n []T) ISCList[T]
- func (l ISCList[T]) None(f func(T) bool) bool
- func (l ISCList[T]) Partition(partition int) [][]T
- func (l ISCList[T]) PartitionWithCal(f func(int) int) [][]T
- func (l ISCList[T]) Plus(n []T) ISCList[T]
- func (l ISCList[T]) Size() int
- func (l ISCList[T]) Slice(r IntRange) ISCList[T]
- func (l ISCList[T]) SubList(fromIndex int, toIndex int) ISCList[T]
- func (l ISCList[T]) Take(n int) ISCList[T]
- func (l ISCList[T]) TakeLast(n int) ISCList[T]
- func (l ISCList[T]) TakeLastWhile(n int, f func(T) bool) ISCList[T]
- func (l ISCList[T]) TakeWhile(n int, f func(T) bool) ISCList[T]
- type ISCListToMap
- func (l ISCListToMap[T, R]) FlatMap(f func(T) []R) ISCList[R]
- func (l ISCListToMap[T, R]) FlatMapIndexed(f func(int, T) []R) ISCList[R]
- func (l ISCListToMap[T, R]) FlatMapIndexedTo(dest *[]R, f func(int, T) []R) ISCList[R]
- func (l ISCListToMap[T, R]) FlatMapTo(dest *[]R, f func(T) []R) ISCList[R]
- func (l ISCListToMap[T, R]) Map(f func(T) R) ISCList[R]
- func (l ISCListToMap[T, R]) MapIndexed(f func(int, T) R) ISCList[R]
- func (l ISCListToMap[T, R]) MapIndexedTo(dest *[]R, f func(int, T) R) ISCList[R]
- func (l ISCListToMap[T, R]) MapTo(dest *[]R, f func(T) R) ISCList[R]
- func (l ISCListToMap[T, R]) Reduce(init func(T) R, f func(R, T) R) R
- func (l ISCListToMap[T, R]) ReduceIndexed(init func(int, T) R, f func(int, R, T) R) R
- type ISCListToPair
- type ISCListToSlice
- type ISCListToTriple
- func (l ISCListToTriple[T, K, V]) Associate(transform func(T) Pair[K, V]) ISCMap[K, V]
- func (l ISCListToTriple[T, K, V]) AssociateBy(keySelector func(T) K) ISCMap[K, T]
- func (l ISCListToTriple[T, K, V]) AssociateByAndValue(keySelector func(T) K, valueTransform func(T) V) ISCMap[K, V]
- func (l ISCListToTriple[T, K, V]) AssociateByAndValueTo(destination *map[K]V, keySelector func(T) K, valueTransform func(T) V) ISCMap[K, V]
- func (l ISCListToTriple[T, K, V]) AssociateByTo(destination *map[K]T, keySelector func(T) K) ISCMap[K, T]
- func (l ISCListToTriple[T, K, V]) AssociateTo(destination *map[K]V, transform func(T) Pair[K, V]) ISCMap[K, V]
- func (l ISCListToTriple[T, K, V]) AssociateWith(valueSelector func(T) V) ISCMap[T, V]
- func (l ISCListToTriple[T, K, V]) AssociateWithTo(destination *map[T]V, valueSelector func(T) V) ISCMap[T, V]
- func (l ISCListToTriple[T, K, V]) GroupBy(f func(T) K) map[K][]T
- func (l ISCListToTriple[T, K, V]) GroupByTo(dest *map[K][]T, f func(T) K) map[K][]T
- func (l ISCListToTriple[T, K, V]) GroupByTransform(f func(T) K, trans func(T) V) map[K][]V
- func (l ISCListToTriple[T, K, V]) GroupByTransformTo(dest *map[K][]V, f func(T) K, trans func(T) V) map[K][]V
- type ISCMap
- func (m ISCMap[K, V]) All(f func(K, V) bool) bool
- func (m ISCMap[K, V]) AllKey(f func(K) bool) bool
- func (m ISCMap[K, V]) AllValue(f func(V) bool) bool
- func (m ISCMap[K, V]) Any(f func(K, V) bool) bool
- func (m ISCMap[K, V]) AnyKey(f func(K) bool) bool
- func (m ISCMap[K, V]) AnyValue(f func(V) bool) bool
- func (m *ISCMap[K, V]) Clear()
- func (m ISCMap[K, V]) Contains(k K, v V) bool
- func (m ISCMap[K, V]) ContainsKey(k K) bool
- func (m ISCMap[K, V]) ContainsValue(v V) bool
- func (m ISCMap[K, V]) Count(f func(K, V) bool) int
- func (m ISCMap[K, V]) CountKey(f func(K) bool) int
- func (m ISCMap[K, V]) CountValue(f func(V) bool) int
- func (m ISCMap[K, V]) Delete(k K)
- func (m ISCMap[K, V]) Equals(n map[K]V) bool
- func (m ISCMap[K, V]) Filter(f func(K, V) bool) ISCMap[K, V]
- func (m ISCMap[K, V]) FilterKeys(f func(K) bool) ISCMap[K, V]
- func (m ISCMap[K, V]) FilterNot(f func(K, V) bool) ISCMap[K, V]
- func (m ISCMap[K, V]) FilterNotTo(dest *map[K]V, f func(K, V) bool) ISCMap[K, V]
- func (m ISCMap[K, V]) FilterTo(dest *map[K]V, f func(K, V) bool) ISCMap[K, V]
- func (m ISCMap[K, V]) FilterValues(f func(V) bool) ISCMap[K, V]
- func (m ISCMap[K, V]) ForEach(f func(K, V))
- func (m ISCMap[K, V]) Get(k K) V
- func (m ISCMap[K, V]) GetOrDef(k K, def V) V
- func (m ISCMap[K, V]) JoinToString(f func(K, V) string) string
- func (m ISCMap[K, V]) JoinToStringFull(sep string, prefix string, postfix string, f func(K, V) string) string
- func (m ISCMap[K, V]) Keys() ISCList[K]
- func (m ISCMap[K, V]) Minus(n map[K]V) ISCMap[K, V]
- func (m ISCMap[K, V]) None(f func(K, V) bool) bool
- func (m ISCMap[K, V]) NoneKey(f func(K) bool) bool
- func (m ISCMap[K, V]) NoneValue(f func(V) bool) bool
- func (m ISCMap[K, V]) Plus(n map[K]V) ISCMap[K, V]
- func (m ISCMap[K, V]) Put(k K, v V)
- func (m ISCMap[K, V]) PutAllPairs(item ...Pair[K, V])
- func (m ISCMap[K, V]) PutPair(item Pair[K, V])
- func (m ISCMap[K, V]) Size() int
- func (m ISCMap[K, V]) ToList() []Pair[K, V]
- type ISCMapToMap
- type ISCSet
- type ISCString
- func (s ISCString) At(index int) uint8
- func (s ISCString) Chars() ISCList[uint8]
- func (s ISCString) Contains(substr string) bool
- func (s ISCString) ContainsAny(chars string) bool
- func (s ISCString) ContainsRune(r rune) bool
- func (s ISCString) Count(substr string) int
- func (s ISCString) Delete(index int, count int) ISCString
- func (s ISCString) Drop(n int) ISCString
- func (s ISCString) DropLast(n int) ISCString
- func (s ISCString) EndsWith(suffix string) bool
- func (s ISCString) EqualFold(t string) bool
- func (s ISCString) Fields() []ISCString
- func (s ISCString) FieldsFunc(f func(rune) bool) []ISCString
- func (s ISCString) IndexByteOf(c byte) int
- func (s ISCString) IndexOf(substr string) int
- func (s ISCString) IndexOfAny(chars string) int
- func (s ISCString) IndexOfFunc(f func(rune) bool) int
- func (s ISCString) Insert(index int, substr string) ISCString
- func (s ISCString) IsEmpty() bool
- func (s ISCString) LastIndexOf(substr string) int
- func (s ISCString) LastIndexOfAny(chars string) int
- func (s ISCString) LastIndexOfByte(c byte) int
- func (s ISCString) LastIndexOfFunc(f func(rune) bool) int
- func (s ISCString) Length() int
- func (s ISCString) Lines() []ISCString
- func (s ISCString) LinesNoEmpty() []ISCString
- func (s ISCString) Matches(pattern string) bool
- func (s ISCString) Repeat(count int) ISCString
- func (s ISCString) Replace(old, new string, n int) ISCString
- func (s ISCString) ReplaceAll(old, new string) ISCString
- func (s ISCString) Split(sep string) []ISCString
- func (s ISCString) SplitAfter(sep string) []ISCString
- func (s ISCString) SplitAfterN(sep string, n int) []ISCString
- func (s ISCString) SplitN(sep string, n int) []ISCString
- func (s ISCString) StartsWith(prefix string) bool
- func (s ISCString) SubStringAfter(delimiter string) ISCString
- func (s ISCString) SubStringAfterLast(delimiter string) ISCString
- func (s ISCString) SubStringBefore(delimiter string) ISCString
- func (s ISCString) SubStringBeforeLast(delimiter string) ISCString
- func (s ISCString) SubStringStart(AStartIndex int) ISCString
- func (s ISCString) SubStringStartEnd(AStartIndex, AEndIndex int) ISCString
- func (s ISCString) Take(n int) ISCString
- func (s ISCString) TakeLast(n int) ISCString
- func (s ISCString) ToBoolean() bool
- func (s ISCString) ToCookieMap() ISCMap[ISCString, ISCString]
- func (s ISCString) ToFloat() float32
- func (s ISCString) ToFloat64() float64
- func (s ISCString) ToInt() int
- func (s ISCString) ToInt8() int8
- func (s ISCString) ToInt16() int16
- func (s ISCString) ToInt32() int32
- func (s ISCString) ToInt64() int64
- func (s ISCString) ToIntRadix(radix int) (int64, error)
- func (s ISCString) ToJSONEncoded() ISCString
- func (s ISCString) ToLower() ISCString
- func (s ISCString) ToMap() ISCMap[ISCString, ISCString]
- func (s ISCString) ToPair() Pair[ISCString, ISCString]
- func (s ISCString) ToTitle() ISCString
- func (s ISCString) ToUpper() ISCString
- func (s ISCString) Trim(cutset string) ISCString
- func (s ISCString) TrimFunc(f func(rune) bool) ISCString
- func (s ISCString) TrimLeft(cutset string) ISCString
- func (s ISCString) TrimLeftFunc(f func(rune) bool) ISCString
- func (s ISCString) TrimPrefix(prefix string) ISCString
- func (s ISCString) TrimRight(cutset string) ISCString
- func (s ISCString) TrimRightFunc(f func(rune) bool) ISCString
- func (s ISCString) TrimSpace() ISCString
- func (s ISCString) TrimSuffix(suffix string) ISCString
- type ISCUTF8String
- func (s ISCUTF8String) At(index int) rune
- func (s ISCUTF8String) Chars() ISCList[rune]
- func (s ISCUTF8String) Contains(substr ISCUTF8String) bool
- func (s ISCUTF8String) ContainsRune(r rune) bool
- func (s ISCUTF8String) Count(substr ISCUTF8String) int
- func (s ISCUTF8String) Delete(index int, count int) ISCUTF8String
- func (s ISCUTF8String) EndsWith(suffix ISCUTF8String) bool
- func (s ISCUTF8String) EqualFold(t ISCUTF8String) bool
- func (s ISCUTF8String) Fields() []ISCUTF8String
- func (s ISCUTF8String) FieldsFunc(f func(rune) bool) []ISCUTF8String
- func (s ISCUTF8String) IndexOf(substr ISCUTF8String) int
- func (s ISCUTF8String) IndexOfFunc(f func(rune) bool) int
- func (s ISCUTF8String) Insert(index int, substr ISCUTF8String) ISCUTF8String
- func (s ISCUTF8String) IsEmpty() bool
- func (s ISCUTF8String) LastIndexOf(substr ISCUTF8String) int
- func (s ISCUTF8String) LastIndexOfFunc(f func(rune) bool) int
- func (s ISCUTF8String) Length() int
- func (s ISCUTF8String) Lines() []ISCUTF8String
- func (s ISCUTF8String) LinesNoEmpty() []ISCUTF8String
- func (s ISCUTF8String) Matches(pattern ISCUTF8String) bool
- func (s ISCUTF8String) Replace(old, new ISCUTF8String, n int) ISCUTF8String
- func (s ISCUTF8String) ReplaceAll(old, new ISCUTF8String) ISCUTF8String
- func (s ISCUTF8String) Split(sep ISCUTF8String) []ISCUTF8String
- func (s ISCUTF8String) SplitAfter(sep ISCUTF8String) []ISCUTF8String
- func (s ISCUTF8String) SplitAfterN(sep ISCUTF8String, n int) []ISCUTF8String
- func (s ISCUTF8String) SplitN(sep ISCUTF8String, n int) []ISCUTF8String
- func (s ISCUTF8String) StartsWith(prefix ISCUTF8String) bool
- func (s ISCUTF8String) String() string
- func (s ISCUTF8String) SubStringAfter(delimiter ISCUTF8String) ISCUTF8String
- func (s ISCUTF8String) SubStringAfterLast(delimiter ISCUTF8String) ISCUTF8String
- func (s ISCUTF8String) SubStringBefore(delimiter ISCUTF8String) ISCUTF8String
- func (s ISCUTF8String) SubStringBeforeLast(delimiter ISCUTF8String) ISCUTF8String
- func (s ISCUTF8String) SubStringStart(AStartIndex int) ISCUTF8String
- func (s ISCUTF8String) SubStringStartEnd(AStartIndex, AEndIndex int) ISCUTF8String
- func (s ISCUTF8String) ToBoolean() bool
- func (s ISCUTF8String) ToFloat() float32
- func (s ISCUTF8String) ToFloat64() float64
- func (s ISCUTF8String) ToInt() int
- func (s ISCUTF8String) ToInt8() int8
- func (s ISCUTF8String) ToInt16() int16
- func (s ISCUTF8String) ToInt32() int32
- func (s ISCUTF8String) ToInt64() int64
- func (s ISCUTF8String) ToIntRadix(radix int) (int64, error)
- func (s ISCUTF8String) ToJSONEncoded() ISCUTF8String
- func (s ISCUTF8String) ToLower() ISCUTF8String
- func (s ISCUTF8String) ToPair() Pair[ISCUTF8String, ISCUTF8String]
- func (s ISCUTF8String) ToTitle() ISCUTF8String
- func (s ISCUTF8String) ToUpper() ISCUTF8String
- func (s ISCUTF8String) Trim(cutset ISCUTF8String) ISCUTF8String
- func (s ISCUTF8String) TrimFunc(f func(rune) bool) ISCUTF8String
- func (s ISCUTF8String) TrimLeft(cutset ISCUTF8String) ISCUTF8String
- func (s ISCUTF8String) TrimLeftFunc(f func(rune) bool) ISCUTF8String
- func (s ISCUTF8String) TrimPrefix(prefix ISCUTF8String) ISCUTF8String
- func (s ISCUTF8String) TrimRight(cutset ISCUTF8String) ISCUTF8String
- func (s ISCUTF8String) TrimRightFunc(f func(rune) bool) ISCUTF8String
- func (s ISCUTF8String) TrimSpace() ISCUTF8String
- func (s ISCUTF8String) TrimSuffix(suffix ISCUTF8String) ISCUTF8String
- type IntRange
- type LinkedHashMap
- type MapPair
- type OrderMap
- func (m OrderMap[K, V]) All(f func(K, V) bool) bool
- func (m OrderMap[K, V]) AllKey(f func(K) bool) bool
- func (m OrderMap[K, V]) AllValue(f func(V) bool) bool
- func (m OrderMap[K, V]) Any(f func(K, V) bool) bool
- func (m OrderMap[K, V]) AnyKey(f func(K) bool) bool
- func (m OrderMap[K, V]) AnyValue(f func(V) bool) bool
- func (m *OrderMap[K, V]) Clear()
- func (m OrderMap[K, V]) Contains(k K, v V) bool
- func (m OrderMap[K, V]) ContainsKey(k K) bool
- func (m OrderMap[K, V]) ContainsValue(v V) bool
- func (m OrderMap[K, V]) Count(f func(K, V) bool) int
- func (m OrderMap[K, V]) CountKey(f func(K) bool) int
- func (m OrderMap[K, V]) CountValue(f func(V) bool) int
- func (m *OrderMap[K, V]) Delete(k K)
- func (m OrderMap[K, V]) Filter(f func(K, V) bool) OrderMap[K, V]
- func (m OrderMap[K, V]) FilterIndexed(f func(int, K, V) bool) OrderMap[K, V]
- func (m OrderMap[K, V]) FilterIndexedTo(dest *OrderMap[K, V], f func(int, K, V) bool) OrderMap[K, V]
- func (m OrderMap[K, V]) FilterKeys(f func(K) bool) OrderMap[K, V]
- func (m OrderMap[K, V]) FilterKeysIndexed(f func(int, K) bool) OrderMap[K, V]
- func (m OrderMap[K, V]) FilterNot(f func(K, V) bool) OrderMap[K, V]
- func (m OrderMap[K, V]) FilterNotIndexed(f func(int, K, V) bool) OrderMap[K, V]
- func (m OrderMap[K, V]) FilterNotIndexedTo(dest *OrderMap[K, V], f func(int, K, V) bool) OrderMap[K, V]
- func (m OrderMap[K, V]) FilterNotTo(dest *OrderMap[K, V], f func(K, V) bool) OrderMap[K, V]
- func (m OrderMap[K, V]) FilterTo(dest *OrderMap[K, V], f func(K, V) bool) OrderMap[K, V]
- func (m OrderMap[K, V]) FilterValues(f func(V) bool) OrderMap[K, V]
- func (m OrderMap[K, V]) FilterValuesIndexed(f func(int, V) bool) OrderMap[K, V]
- func (m OrderMap[K, V]) ForEach(f func(K, V))
- func (m OrderMap[K, V]) ForEachIndexed(f func(int, K, V))
- func (m OrderMap[K, V]) Get(k K) V
- func (m OrderMap[K, V]) GetKey(index int) K
- func (m OrderMap[K, V]) GetOrDef(k K, def V) V
- func (m OrderMap[K, V]) GetValue(index int) V
- func (m OrderMap[K, V]) JoinToString(f func(K, V) string) string
- func (m OrderMap[K, V]) JoinToStringFull(sep string, prefix string, postfix string, f func(K, V) string) string
- func (m OrderMap[K, V]) Keys() []K
- func (m OrderMap[K, V]) Minus(n OrderMap[K, V]) OrderMap[K, V]
- func (m OrderMap[K, V]) None(f func(K, V) bool) bool
- func (m OrderMap[K, V]) NoneKey(f func(K) bool) bool
- func (m OrderMap[K, V]) NoneValue(f func(V) bool) bool
- func (m OrderMap[K, V]) Plus(n OrderMap[K, V]) OrderMap[K, V]
- func (m *OrderMap[K, V]) Put(k K, v V)
- func (m *OrderMap[K, V]) PutPair(item Pair[K, V])
- func (m *OrderMap[K, V]) PutPairs(item ...Pair[K, V])
- func (m OrderMap[K, V]) Size() int
- func (m OrderMap[K, V]) ToList() []Pair[K, V]
- type Pair
- type Properties
- type Queue
- type Stream
- func (s Stream[T]) AllMatch(predicate func(T) bool) bool
- func (s Stream[T]) AnyMatch(predicate func(T) bool) bool
- func (s Stream[T]) Distinct(keySelector func(T) T) Stream[T]
- func (s Stream[T]) Done()
- func (s Stream[T]) Filter(predicate func(T) bool) Stream[T]
- func (s Stream[T]) FirsVal() any
- func (s Stream[T]) First(valueSelector func(T) bool) Stream[T]
- func (s Stream[T]) ForEach(fn func(T))
- func (s Stream[T]) Last(valueSelector func(any) bool) Stream[T]
- func (s Stream[T]) LastVal() (item T)
- func (s Stream[T]) Map(fn func(T) T) Stream[T]
- func (s Stream[T]) NoneMatch(predicate func(T) bool) bool
- func (s Stream[T]) Sort(less func(T, T) bool) Stream[T]
- type StringPair
- type Triple
- type TypeEnum
- type YamlNode
Constants ¶
const ( MIN_LOW_SURROGATE = 0xDC00 MAX_LOW_SURROGATE = 0xDFFF MIN_HIGH_SURROGATE = 0xD800 MAX_HIGH_SURROGATE = 0xDBFF )
Variables ¶
var ArrayBlanks = "- "
ArrayBlanks 数组缩进
var Banner = DefaultBanner
var BannerBinDwenDwen = `` /* 912-byte string literal not displayed */
var BannerMiku = `` /* 890-byte string literal not displayed */
var DefaultBanner = `
______ ____ __ __ ____ ____ _____ ____ ____
/\__ _\ /\ _` + "`" + `\ /\ \ /\ \/\ _` + "`" + `\ /\ _` + "`" + `\ /\ __` + "`" + `\ /\ _` + "`" + `\ /\ _` + "`" + `\
\/_/\ \/ \ \,\L\_\\ ` + "`" + `\` + "`" + `\\/'/\ \,\L\_\\ \ \/\_\\ \ \/\ \\ \ \L\ \\ \ \L\_\
\ \ \ \/_\__ \ ` + "`" + `\ ` + "`" + `\ /' \/_\__ \ \ \ \/_/_\ \ \ \ \\ \ , / \ \ _\L
\_\ \__ /\ \L\ \ ` + "`" + `\ \ \ /\ \L\ \\ \ \L\ \\ \ \_\ \\ \ \\ \ \ \ \L\ \
/\_____\\ ` + "`" + `\____\ \ \_\ \ ` + "`" + `\____\\ \____/ \ \_____\\ \_\ \_\\ \____/
\/_____/ \/_____/ \/_/ \/_____/ \/___/ \/_____/ \/_/\/ / \/___/
`
var Dot = "."
Dot 点
var IndentBlanks = " "
IndentBlanks 缩进空格
var NewLine = "\n"
NewLine 换行符
var SignEqual = "="
SignEqual 等号连接符
var SignSemicolon = ":"
SignSemicolon 分号连接符
var YamlNewLineDom = "|\n"
YamlNewLineDom yaml的value换行符
Functions ¶
func ArrayToObject ¶
func Associate ¶
func Associate[T any, K comparable, V any](list []T, transform func(T) Pair[K, V]) map[K]V
Associate Returns a Map containing key-value map provided by transform function applied to elements of the given collection. If any of two map would have the same key the last one gets added to the map. The returned map preserves the entry iteration order of the original collection.
func AssociateBy ¶
func AssociateBy[T any, K comparable](list []T, keySelector func(T) K) map[K]T
AssociateBy Returns a Map containing the elements from the given collection indexed by the key returned from keySelector function applied to each element. If any two elements would have the same key returned by keySelector the last one gets added to the map. The returned map preserves the entry iteration order of the original collection.
func AssociateByAndValue ¶
func AssociateByAndValue[T any, V any, K comparable](list []T, keySelector func(T) K, valueTransform func(T) V) map[K]V
AssociateByAndValue Returns a Map containing the values provided by valueTransform and indexed by keySelector functions applied to elements of the given collection. If any two elements would have the same key returned by keySelector the last one gets added to the map. The returned map preserves the entry iteration order of the original collection.
func AssociateByAndValueTo ¶
func AssociateByAndValueTo[T, V any, K comparable](list []T, destination *map[K]V, keySelector func(T) K, valueTransform func(T) V) map[K]V
AssociateByAndValueTo Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given collection and value is the element itself. If any two elements would have the same key returned by keySelector the last one gets added to the map
func AssociateByTo ¶
func AssociateByTo[T any, K comparable](list []T, destination *map[K]T, keySelector func(T) K) map[K]T
AssociateByTo Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given collection and value is the element itself. If any two elements would have the same key returned by keySelector the last one gets added to the map
func AssociateTo ¶
func AssociateTo[T any, K comparable, V any](list []T, destination *map[K]V, transform func(T) Pair[K, V]) map[K]V
AssociateTo Populates and returns the destination map with key-value pairs provided by transform function applied to each element of the given collection. If any of two pairs would have the same key the last one gets added to the map.
func AssociateWith ¶
func AssociateWith[T comparable, V any](list []T, valueSelector func(T) V) map[T]V
AssociateWith Returns a Map where keys are elements from the given collection and values are produced by the valueSelector function applied to each element. If any two elements are equal, the last one gets added to the map. The returned map preserves the entry iteration order of the original collection.
func AssociateWithTo ¶
func AssociateWithTo[T comparable, V any](list []T, destination *map[T]V, valueSelector func(T) V) map[T]V
AssociateWithTo Populates and returns the destination mutable map with key-value pairs for each element of the given collection, where key is the element itself and value is provided by the valueSelector function applied to that key. If any two elements are equal, the last one overwrites the former value in the map.
func BigCamelToMiddleLine ¶
BigCamelToMiddleLine 大驼峰到中划线: DataBaseUser -> data-db-user
func BigCamelToPostUnder ¶
BigCamelToPostUnder 大驼峰到后缀下划线: DataBaseUser -> data_base_user_
func BigCamelToPrePostUnder ¶
BigCamelToPrePostUnder 大驼峰到前后缀下划线: DataBaseUser -> _data_base_user_
func BigCamelToPreUnder ¶
BigCamelToPreUnder 大驼峰到前后缀下划线: DataBaseUser -> _data_base_user
func BigCamelToSmallCamel ¶
BigCamelToSmallCamel 大驼峰到小驼峰:首字母变成小写:DataBaseUser -> dataBaseUser
func BigCamelToUnderLine ¶
BigCamelToUnderLine 大驼峰到下划线:DataBaseUser -> data_base_user
func BigCamelToUpperMiddle ¶
BigCamelToUpperMiddle 大驼峰到小写中划线:DataBaseUser -> DATA-BASE-USER
func BigCamelToUpperUnder ¶
BigCamelToUpperUnder 大驼峰到大写下划线: DataBaseUser -> DATA_BASE_USER
func DataToObject ¶
DataToObject 其他的类型能够按照小写字母转换到对象 其他类型:
- 基本类型
- 结构体类型:转换后对象
- map类型
- 集合/分片类型
- 字符串类型:如果是json,则按照json进行转换
func DropLastWhile ¶
DropLastWhile Returns a list containing all elements except last elements that satisfy the given predicate.
func DropWhile ¶
DropWhile Returns a list containing all elements except first elements that satisfy the given predicate.
func FirstOrNull ¶
func FirstOrNull[T any](list []T) *T
func FormatSize ¶
func GetPrivateFieldValue ¶
获取对象的属性:一般用于访问私有属性
func GroupBy ¶
func GroupBy[T any, K comparable](list []T, keySelector func(T) K) (destination map[K][]T)
GroupBy Groups elements of the original collection by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements. The returned map preserves the entry iteration order of the keys produced from the original collection.
func GroupByTo ¶
func GroupByTo[T any, K comparable](list []T, dest *map[K][]T, keySelector func(T) K) (destination map[K][]T)
GroupByTo Groups elements of the original collection by the key returned by the given keySelector function applied to each element and puts to the dest map each group key associated with a list of corresponding elements. Returns: The dest map‘s val
func GroupByTransform ¶
func GroupByTransform[T any, K comparable, V any](list []T, keySelector func(T) K, trans func(T) V) map[K][]V
GroupByTransform Groups values returned by the trans function applied to each element of the original collection by the key returned by the given keySelector function applied to the element and puts to a map each group key associated with a list of corresponding values.
func GroupByTransformTo ¶
func GroupByTransformTo[T any, K comparable, V any](list []T, dest *map[K][]V, keySelector func(T) K, trans func(T) V) map[K][]V
GroupByTransformTo Groups values returned by the trans function applied to each element of the original collection by the key returned by the given keySelector function applied to the element and puts to the dest map each group key associated with a list of corresponding values. Returns: The dest map's val.
func IndexOfCondition ¶
func IsInSlice ¶
func IsInSlice[T comparable](list []T, val T) bool
func IsProperty ¶
func JsonToYaml ¶
func LastIndexOf ¶
func LastIndexOfCondition ¶
func LastOrNull ¶
func LastOrNull[T any](list []T) *T
func ListContains ¶
func ListDistinct ¶
func ListDistinct[T any](list []T) []T
func ListFilter ¶
ListFilter filter specificated item in a list
func ListFilterIndexed ¶
ListFilterIndexed Returns a list containing only elements matching the given predicate. Params: predicate - function that takes the index of an element and the element itself and returns the result of predicate evaluation on the element.
func ListFilterIndexedTo ¶
ListFilterIndexedTo Appends all elements matching the given predicate to the given destination. Params: predicate - function that takes the index of an element and the element itself and returns the result of predicate evaluation on the element.
func ListFilterNot ¶
ListFilterNot Returns a list containing all elements not matching the given predicate.
func ListFilterNotIndexed ¶
ListFilterNotIndexed Appends all elements matching the given predicate to the given destination. Params: predicate - function that takes the index of an element and the element itself and returns the result of predicate evaluation on the element.
func ListFilterNotIndexedTo ¶
ListFilterNotIndexedTo Appends all elements not matching the given predicate to the given destination. Params: predicate - function that takes the index of an element and the element itself and returns the result of predicate evaluation on the element.
func ListFilterNotNull ¶
func ListFilterNotNull[T any](list []*T) []*T
ListFilterNotNull Returns a list containing all elements that are not null.
func ListFilterNotTo ¶
ListFilterNotTo Appends all elements not matching the given predicate to the given destination.
func ListFilterTo ¶
ListFilterTo Appends all elements matching the given predicate to the given dest.
func ListFlatMap ¶
func ListFlatMapIndexed ¶
func ListFlatMapIndexedTo ¶
func ListFlatMapTo ¶
func ListFlattern ¶
func ListFlattern[T any](list [][]T) []T
func ListJoinToString ¶
func ListJoinToStringFull ¶
func ListMapIndexed ¶
func ListMapIndexedNotNull ¶
func ListMapIndexedNotNullTo ¶
func ListMapIndexedTo ¶
func ListMapNotNull ¶
func ListMapNotNullTo ¶
func ListToMap ¶
func ListToMap[K comparable, V any](list []Pair[K, V]) map[K]V
func LoadBanner ¶
func LoadBanner(filePath string)
func MapAllValue ¶
func MapAllValue[K comparable, V any](m map[K]V, f func(V) bool) bool
func MapAnyValue ¶
func MapAnyValue[K comparable, V any](m map[K]V, f func(V) bool) bool
func MapContains ¶
func MapContains[K comparable, V any](m map[K]V, k K, v V) bool
func MapContainsKey ¶
func MapContainsKey[K comparable, V any](m map[K]V, k K) bool
func MapContainsValue ¶
func MapContainsValue[K comparable, V any](m map[K]V, v V) bool
func MapCountKey ¶
func MapCountKey[K comparable, V any](m map[K]V, f func(K) bool) int
func MapCountValue ¶
func MapCountValue[K comparable, V any](m map[K]V, f func(V) bool) int
func MapEquals ¶
func MapEquals[K comparable, V any](leftMap map[K]V, rightMap map[K]V) bool
MapEquals 比较两个map是否相同
func MapFilter ¶
func MapFilter[K comparable, V any](m map[K]V, f func(K, V) bool) map[K]V
func MapFilterKeys ¶
func MapFilterKeys[K comparable, V any](m map[K]V, f func(K) bool) map[K]V
func MapFilterNot ¶
func MapFilterNot[K comparable, V any](m map[K]V, f func(K, V) bool) map[K]V
func MapFilterNotTo ¶
func MapFilterNotTo[K comparable, V any](m map[K]V, dest *map[K]V, f func(K, V) bool) map[K]V
func MapFilterTo ¶
func MapFilterTo[K comparable, V any](m map[K]V, dest *map[K]V, f func(K, V) bool) map[K]V
func MapFilterValues ¶
func MapFilterValues[K comparable, V any](m map[K]V, f func(V) bool) map[K]V
func MapFlatMap ¶
func MapFlatMap[K comparable, V any, R any](m map[K]V, f func(K, V) []R) []R
func MapFlatMapTo ¶
func MapFlatMapTo[K comparable, V any, R any](m map[K]V, dest *[]R, f func(K, V) []R) []R
func MapJoinToString ¶
func MapJoinToString[K comparable, V any](m map[K]V, f func(K, V) string) string
func MapJoinToStringFull ¶
func MapMap ¶
func MapMap[K comparable, V any, R any](m map[K]V, f func(K, V) R) []R
func MapMapNotNull ¶
func MapMapNotNull[K comparable, V any, R any](m map[K]*V, f func(K, V) R) []R
func MapMapNotNullTo ¶
func MapMapNotNullTo[K comparable, V any, R any](m map[K]*V, dest *[]R, f func(K, V) R) []R
func MapMapTo ¶
func MapMapTo[K comparable, V any, R any](m map[K]V, dest *[]R, f func(K, V) R) []R
func MapMinus ¶
func MapMinus[K comparable, V any](m map[K]V, n map[K]V) map[K]V
func MapNoneKey ¶
func MapNoneKey[K comparable, V any](m map[K]V, f func(K) bool) bool
func MapNoneValue ¶
func MapNoneValue[K comparable, V any](m map[K]V, f func(V) bool) bool
func MapPlus ¶
func MapPlus[K comparable, V any](m map[K]V, n map[K]V) map[K]V
func MapToObject ¶
func MapToProperties ¶
MapToProperties 进行深层嵌套的map数据处理
func MiddleLine ¶
MiddleLine 小驼峰到中划线:dataBaseUser -> data-db-user
func MiddleLineToBigCamel ¶
MiddleLineToBigCamel 中划线到大驼峰:data-db-user -> DataBaseUser
func MiddleLineToSmallCamel ¶
MiddleLineToSmallCamel 中划线到小驼峰:data-base-user -> dataBaseUser
func ObjectToYaml ¶
func ParseByteSize ¶
func PartitionWithCal ¶
PartitionWithCal 计算partition数 f: 入参为数组长度,返回partition数
func PreFixUnderLine ¶
PreFixUnderLine 小驼峰到添加前缀字符下划线:dataBaseUser -> pre_data_base_user
func PreFixUnderToSmallCamel ¶
PreFixUnderToSmallCamel 前缀字符下划线去掉到小驼峰:pre_data_base_user -> dataBaseUser
func PrePostUnder ¶
PrePostUnder 小驼峰到前后缀下划线:dataBaseUser -> _data_base_user_
func PrintBanner ¶
func PrintBanner()
func PropertiesEntityToYaml ¶
func PropertiesEntityToYaml(properties Properties) (string, error)
func PropertiesToYaml ¶
func ReduceIndexed ¶
func SetFieldPrivateValue ¶
给对象的属性设置值:一般用于设置私有属性
func SliceContains ¶
func SliceContains[T any, K comparable](list []T, predicate func(T) K, key K) bool
SliceContains Returns true if element is found in the collection. predicate keySelector if you want to check item in list, please use ListContains
func SliceDistinct ¶
func SliceDistinct[T any](list []T) []T
func SliceDistinctTo ¶
func SliceDistinctTo[T any, V comparable](list []T, valueTransform func(T) V) []T
SliceDistinctTo Returns a list containing only distinct elements from the given collection. Among equal elements of the given collection, only the last one will be present in the resulting list. The elements in the resulting list are not in the same order as they were in the source collection.
func SliceTo ¶
func SliceTo[T any, K comparable](list []T, valueTransform func(T) K) map[K]T
func SliceToMap ¶
func SliceToMap[T comparable](list []T) map[T]T
func StrToObject ¶
func TakeLastWhile ¶
TakeLastWhile Returns a list containing first elements satisfying the given predicate.
func ToComplex64 ¶
func ToComplex128 ¶
func ToComplex128(value any) complex128
func ToJsonString ¶
func ToUpperWord ¶
ToUpperWord 匹配的单词变为大写 regex: 正则表达式,主要用于匹配某些字符变为大写 word: 待匹配字段
func UnderLineToBigCamel ¶
UnderLineToBigCamel 下划线到大驼峰:下划线后面小写变大写,下划线去掉 data_base_user -> DataBaseUser _data_base_user -> DataBaseUser _data_base_user_ -> DataBaseUser data_base_user_ -> DataBaseUser
func UnderLineToSmallCamel ¶
UnderLineToSmallCamel 下划线到小驼峰:下划线后面小写变大写,下划线去掉 data_base_user -> dataBaseUser _data_base_user -> dataBaseUser _data_base_user_ -> dataBaseUser data_base_user_ -> dataBaseUser
func UpperMiddleToBigCamel ¶
大写中划线到大驼峰:DATA-BASE-USER -> DataBaseUser
func UpperUnder ¶
UpperUnder 小驼峰到大写下划线:dataBaseUser -> DATA_BASE_USER
func UpperUnderMiddle ¶
UpperUnderMiddle 小驼峰到大写中划线:dataBaseUser -> DATA-BASE-USER
func UpperUnderMiddleToSmallCamel ¶
UpperUnderMiddleToSmallCamel 大写中划线到大驼峰:DATA-BASE-USER -> dataBaseUser
func UpperUnderToBigCamel ¶
UpperUnderToBigCamel 大写下划线到大驼峰:DATA_BASE_USER -> DataBaseUser
func UpperUnderToSmallCamel ¶
UpperUnderToSmallCamel 大写下划线到小驼峰:DATA_BASE_USER -> dataBaseUser
func YamlToJson ¶
func YamlToList ¶
func YamlToProperties ¶
Types ¶
type ChangeError ¶
type ChangeError struct {
ErrMsg string
}
func (*ChangeError) Error ¶
func (error *ChangeError) Error() string
type ConvertError ¶
type ConvertError struct {
// contains filtered or unexported fields
}
func (*ConvertError) Error ¶
func (convertError *ConvertError) Error() string
type ISCChar ¶
type ISCChar rune
func (ISCChar) IsHighSurrogate ¶
func (ISCChar) IsISOControl ¶
func (ISCChar) IsLetterOrDigit ¶
func (ISCChar) IsLowSurrogate ¶
func (ISCChar) IsWhitespace ¶
type ISCFloat64 ¶
type ISCFloat64 float64
func (ISCFloat64) ToString ¶
func (i ISCFloat64) ToString() ISCString
type ISCList ¶
type ISCList[T any] []T
func NewListWithItems ¶
func NewListWithList ¶
func (ISCList[T]) DropLastWhile ¶
func (ISCList[T]) FilterIndexedTo ¶
func (ISCList[T]) FilterNotIndexed ¶
func (ISCList[T]) FilterNotIndexedTo ¶
func (ISCList[T]) FilterNotTo ¶
func (ISCList[T]) FirstOrNull ¶
func (l ISCList[T]) FirstOrNull() *T
func (ISCList[T]) ForEachIndexed ¶
func (ISCList[T]) IndexOfCondition ¶
func (ISCList[T]) JoinToString ¶
func (ISCList[T]) JoinToStringFull ¶
func (ISCList[T]) LastIndexOf ¶
func (ISCList[T]) LastIndexOfCondition ¶
func (ISCList[T]) LastOrNull ¶
func (l ISCList[T]) LastOrNull() *T
func (ISCList[T]) PartitionWithCal ¶
func (ISCList[T]) TakeLastWhile ¶
type ISCListToMap ¶
func ListToMapFrom ¶
func ListToMapFrom[T any, R any](list ISCList[T]) ISCListToMap[T, R]
func (ISCListToMap[T, R]) FlatMap ¶
func (l ISCListToMap[T, R]) FlatMap(f func(T) []R) ISCList[R]
func (ISCListToMap[T, R]) FlatMapIndexed ¶
func (l ISCListToMap[T, R]) FlatMapIndexed(f func(int, T) []R) ISCList[R]
func (ISCListToMap[T, R]) FlatMapIndexedTo ¶
func (l ISCListToMap[T, R]) FlatMapIndexedTo(dest *[]R, f func(int, T) []R) ISCList[R]
func (ISCListToMap[T, R]) FlatMapTo ¶
func (l ISCListToMap[T, R]) FlatMapTo(dest *[]R, f func(T) []R) ISCList[R]
func (ISCListToMap[T, R]) Map ¶
func (l ISCListToMap[T, R]) Map(f func(T) R) ISCList[R]
func (ISCListToMap[T, R]) MapIndexed ¶
func (l ISCListToMap[T, R]) MapIndexed(f func(int, T) R) ISCList[R]
func (ISCListToMap[T, R]) MapIndexedTo ¶
func (l ISCListToMap[T, R]) MapIndexedTo(dest *[]R, f func(int, T) R) ISCList[R]
func (ISCListToMap[T, R]) MapTo ¶
func (l ISCListToMap[T, R]) MapTo(dest *[]R, f func(T) R) ISCList[R]
func (ISCListToMap[T, R]) Reduce ¶
func (l ISCListToMap[T, R]) Reduce(init func(T) R, f func(R, T) R) R
func (ISCListToMap[T, R]) ReduceIndexed ¶
func (l ISCListToMap[T, R]) ReduceIndexed(init func(int, T) R, f func(int, R, T) R) R
type ISCListToPair ¶
type ISCListToPair[K comparable, V comparable] struct { ISCList[Pair[K, V]] }
func ListToPairFrom ¶
func ListToPairFrom[K comparable, V comparable](list ISCList[Pair[K, V]]) ISCListToPair[K, V]
func ListToPairWithPairs ¶
func ListToPairWithPairs[K comparable, V comparable](list ...Pair[K, V]) ISCListToPair[K, V]
func (ISCListToPair[K, V]) ToMap ¶
func (l ISCListToPair[K, V]) ToMap() ISCMap[K, V]
type ISCListToSlice ¶
type ISCListToSlice[T any, R comparable] struct { ISCList[T] }
func ListToSliceFrom ¶
func ListToSliceFrom[T any, R comparable](list ISCList[T]) ISCListToSlice[T, R]
func (ISCListToSlice[T, R]) SliceContains ¶
func (l ISCListToSlice[T, R]) SliceContains(predicate func(T) R, key R) bool
func (ISCListToSlice[T, R]) SliceTo ¶
func (l ISCListToSlice[T, R]) SliceTo(valueTransform func(T) R) ISCMap[R, T]
type ISCListToTriple ¶
type ISCListToTriple[T comparable, K comparable, V any] struct { ISCList[T] }
func ListToTripleFrom ¶
func ListToTripleFrom[T comparable, K comparable, V any](list ISCList[T]) ISCListToTriple[T, K, V]
func (ISCListToTriple[T, K, V]) Associate ¶
func (l ISCListToTriple[T, K, V]) Associate(transform func(T) Pair[K, V]) ISCMap[K, V]
func (ISCListToTriple[T, K, V]) AssociateBy ¶
func (l ISCListToTriple[T, K, V]) AssociateBy(keySelector func(T) K) ISCMap[K, T]
func (ISCListToTriple[T, K, V]) AssociateByAndValue ¶
func (l ISCListToTriple[T, K, V]) AssociateByAndValue(keySelector func(T) K, valueTransform func(T) V) ISCMap[K, V]
func (ISCListToTriple[T, K, V]) AssociateByAndValueTo ¶
func (l ISCListToTriple[T, K, V]) AssociateByAndValueTo(destination *map[K]V, keySelector func(T) K, valueTransform func(T) V) ISCMap[K, V]
func (ISCListToTriple[T, K, V]) AssociateByTo ¶
func (l ISCListToTriple[T, K, V]) AssociateByTo(destination *map[K]T, keySelector func(T) K) ISCMap[K, T]
func (ISCListToTriple[T, K, V]) AssociateTo ¶
func (l ISCListToTriple[T, K, V]) AssociateTo(destination *map[K]V, transform func(T) Pair[K, V]) ISCMap[K, V]
func (ISCListToTriple[T, K, V]) AssociateWith ¶
func (l ISCListToTriple[T, K, V]) AssociateWith(valueSelector func(T) V) ISCMap[T, V]
func (ISCListToTriple[T, K, V]) AssociateWithTo ¶
func (l ISCListToTriple[T, K, V]) AssociateWithTo(destination *map[T]V, valueSelector func(T) V) ISCMap[T, V]
func (ISCListToTriple[T, K, V]) GroupBy ¶
func (l ISCListToTriple[T, K, V]) GroupBy(f func(T) K) map[K][]T
func (ISCListToTriple[T, K, V]) GroupByTo ¶
func (l ISCListToTriple[T, K, V]) GroupByTo(dest *map[K][]T, f func(T) K) map[K][]T
func (ISCListToTriple[T, K, V]) GroupByTransform ¶
func (l ISCListToTriple[T, K, V]) GroupByTransform(f func(T) K, trans func(T) V) map[K][]V
func (ISCListToTriple[T, K, V]) GroupByTransformTo ¶
func (l ISCListToTriple[T, K, V]) GroupByTransformTo(dest *map[K][]V, f func(T) K, trans func(T) V) map[K][]V
type ISCMap ¶
type ISCMap[K comparable, V any] map[K]V
func NewMap ¶
func NewMap[K comparable, V any]() ISCMap[K, V]
func NewMapWithMap ¶
func NewMapWithMap[K comparable, V any](ma map[K]V) ISCMap[K, V]
func NewMapWithPairs ¶
func NewMapWithPairs[K comparable, V any](pairs ...Pair[K, V]) ISCMap[K, V]
func (ISCMap[K, V]) ContainsKey ¶
func (ISCMap[K, V]) ContainsValue ¶
func (ISCMap[K, V]) CountValue ¶
func (ISCMap[K, V]) FilterKeys ¶
func (ISCMap[K, V]) FilterNotTo ¶
func (ISCMap[K, V]) FilterValues ¶
func (ISCMap[K, V]) JoinToString ¶
func (ISCMap[K, V]) JoinToStringFull ¶
func (ISCMap[K, V]) PutAllPairs ¶
type ISCMapToMap ¶
type ISCMapToMap[K comparable, V any, R any] struct { ISCMap[K, V] }
func MapToMapFrom ¶
func MapToMapFrom[K comparable, V any, R any](m ISCMap[K, V]) ISCMapToMap[K, V, R]
func (ISCMapToMap[K, V, R]) FlatMap ¶
func (m ISCMapToMap[K, V, R]) FlatMap(f func(K, V) []R) ISCList[R]
func (ISCMapToMap[K, V, R]) FlatMapTo ¶
func (m ISCMapToMap[K, V, R]) FlatMapTo(dest *[]R, f func(K, V) []R) ISCList[R]
func (ISCMapToMap[K, V, R]) Map ¶
func (m ISCMapToMap[K, V, R]) Map(f func(K, V) R) ISCList[R]
func (ISCMapToMap[K, V, R]) MapTo ¶
func (m ISCMapToMap[K, V, R]) MapTo(dest *[]R, f func(K, V) R) ISCList[R]
type ISCSet ¶
type ISCSet[T comparable] map[T]struct{}
func ListToSet ¶
func ListToSet[T comparable](list ISCList[T]) ISCSet[T]
func NewSetWithItems ¶
func NewSetWithItems[T comparable](items ...T) ISCSet[T]
func NewSetWithList ¶
func NewSetWithList[T comparable](list []T) ISCSet[T]
type ISCString ¶
type ISCString string
func (ISCString) ContainsAny ¶
func (ISCString) ContainsRune ¶
func (ISCString) IndexByteOf ¶
func (ISCString) IndexOfAny ¶
func (ISCString) LastIndexOf ¶
func (ISCString) LastIndexOfAny ¶
func (ISCString) LastIndexOfByte ¶
func (ISCString) LinesNoEmpty ¶
func (ISCString) ReplaceAll ¶
func (ISCString) SplitAfter ¶
func (ISCString) StartsWith ¶
func (ISCString) SubStringAfter ¶
func (ISCString) SubStringAfterLast ¶
func (ISCString) SubStringBefore ¶
func (ISCString) SubStringBeforeLast ¶
func (ISCString) SubStringStart ¶
func (ISCString) SubStringStartEnd ¶
func (ISCString) ToJSONEncoded ¶
func (ISCString) TrimPrefix ¶
func (ISCString) TrimSuffix ¶
type ISCUTF8String ¶
type ISCUTF8String []rune
func NewUTF8String ¶
func NewUTF8String(str string) ISCUTF8String
func (ISCUTF8String) At ¶
func (s ISCUTF8String) At(index int) rune
func (ISCUTF8String) Chars ¶
func (s ISCUTF8String) Chars() ISCList[rune]
func (ISCUTF8String) Contains ¶
func (s ISCUTF8String) Contains(substr ISCUTF8String) bool
func (ISCUTF8String) ContainsRune ¶
func (s ISCUTF8String) ContainsRune(r rune) bool
func (ISCUTF8String) Count ¶
func (s ISCUTF8String) Count(substr ISCUTF8String) int
func (ISCUTF8String) Delete ¶
func (s ISCUTF8String) Delete(index int, count int) ISCUTF8String
func (ISCUTF8String) EndsWith ¶
func (s ISCUTF8String) EndsWith(suffix ISCUTF8String) bool
func (ISCUTF8String) EqualFold ¶
func (s ISCUTF8String) EqualFold(t ISCUTF8String) bool
func (ISCUTF8String) Fields ¶
func (s ISCUTF8String) Fields() []ISCUTF8String
func (ISCUTF8String) FieldsFunc ¶
func (s ISCUTF8String) FieldsFunc(f func(rune) bool) []ISCUTF8String
func (ISCUTF8String) IndexOf ¶
func (s ISCUTF8String) IndexOf(substr ISCUTF8String) int
func (ISCUTF8String) IndexOfFunc ¶
func (s ISCUTF8String) IndexOfFunc(f func(rune) bool) int
func (ISCUTF8String) Insert ¶
func (s ISCUTF8String) Insert(index int, substr ISCUTF8String) ISCUTF8String
func (ISCUTF8String) IsEmpty ¶
func (s ISCUTF8String) IsEmpty() bool
func (ISCUTF8String) LastIndexOf ¶
func (s ISCUTF8String) LastIndexOf(substr ISCUTF8String) int
func (ISCUTF8String) LastIndexOfFunc ¶
func (s ISCUTF8String) LastIndexOfFunc(f func(rune) bool) int
func (ISCUTF8String) Length ¶
func (s ISCUTF8String) Length() int
func (ISCUTF8String) Lines ¶
func (s ISCUTF8String) Lines() []ISCUTF8String
func (ISCUTF8String) LinesNoEmpty ¶
func (s ISCUTF8String) LinesNoEmpty() []ISCUTF8String
func (ISCUTF8String) Matches ¶
func (s ISCUTF8String) Matches(pattern ISCUTF8String) bool
func (ISCUTF8String) Replace ¶
func (s ISCUTF8String) Replace(old, new ISCUTF8String, n int) ISCUTF8String
func (ISCUTF8String) ReplaceAll ¶
func (s ISCUTF8String) ReplaceAll(old, new ISCUTF8String) ISCUTF8String
func (ISCUTF8String) Split ¶
func (s ISCUTF8String) Split(sep ISCUTF8String) []ISCUTF8String
func (ISCUTF8String) SplitAfter ¶
func (s ISCUTF8String) SplitAfter(sep ISCUTF8String) []ISCUTF8String
func (ISCUTF8String) SplitAfterN ¶
func (s ISCUTF8String) SplitAfterN(sep ISCUTF8String, n int) []ISCUTF8String
func (ISCUTF8String) SplitN ¶
func (s ISCUTF8String) SplitN(sep ISCUTF8String, n int) []ISCUTF8String
func (ISCUTF8String) StartsWith ¶
func (s ISCUTF8String) StartsWith(prefix ISCUTF8String) bool
func (ISCUTF8String) String ¶
func (s ISCUTF8String) String() string
func (ISCUTF8String) SubStringAfter ¶
func (s ISCUTF8String) SubStringAfter(delimiter ISCUTF8String) ISCUTF8String
func (ISCUTF8String) SubStringAfterLast ¶
func (s ISCUTF8String) SubStringAfterLast(delimiter ISCUTF8String) ISCUTF8String
func (ISCUTF8String) SubStringBefore ¶
func (s ISCUTF8String) SubStringBefore(delimiter ISCUTF8String) ISCUTF8String
func (ISCUTF8String) SubStringBeforeLast ¶
func (s ISCUTF8String) SubStringBeforeLast(delimiter ISCUTF8String) ISCUTF8String
func (ISCUTF8String) SubStringStart ¶
func (s ISCUTF8String) SubStringStart(AStartIndex int) ISCUTF8String
func (ISCUTF8String) SubStringStartEnd ¶
func (s ISCUTF8String) SubStringStartEnd(AStartIndex, AEndIndex int) ISCUTF8String
func (ISCUTF8String) ToBoolean ¶
func (s ISCUTF8String) ToBoolean() bool
func (ISCUTF8String) ToFloat ¶
func (s ISCUTF8String) ToFloat() float32
func (ISCUTF8String) ToFloat64 ¶
func (s ISCUTF8String) ToFloat64() float64
func (ISCUTF8String) ToInt ¶
func (s ISCUTF8String) ToInt() int
func (ISCUTF8String) ToInt8 ¶
func (s ISCUTF8String) ToInt8() int8
func (ISCUTF8String) ToInt16 ¶
func (s ISCUTF8String) ToInt16() int16
func (ISCUTF8String) ToInt32 ¶
func (s ISCUTF8String) ToInt32() int32
func (ISCUTF8String) ToInt64 ¶
func (s ISCUTF8String) ToInt64() int64
func (ISCUTF8String) ToIntRadix ¶
func (s ISCUTF8String) ToIntRadix(radix int) (int64, error)
func (ISCUTF8String) ToJSONEncoded ¶
func (s ISCUTF8String) ToJSONEncoded() ISCUTF8String
func (ISCUTF8String) ToLower ¶
func (s ISCUTF8String) ToLower() ISCUTF8String
func (ISCUTF8String) ToPair ¶
func (s ISCUTF8String) ToPair() Pair[ISCUTF8String, ISCUTF8String]
func (ISCUTF8String) ToTitle ¶
func (s ISCUTF8String) ToTitle() ISCUTF8String
func (ISCUTF8String) ToUpper ¶
func (s ISCUTF8String) ToUpper() ISCUTF8String
func (ISCUTF8String) Trim ¶
func (s ISCUTF8String) Trim(cutset ISCUTF8String) ISCUTF8String
func (ISCUTF8String) TrimFunc ¶
func (s ISCUTF8String) TrimFunc(f func(rune) bool) ISCUTF8String
func (ISCUTF8String) TrimLeft ¶
func (s ISCUTF8String) TrimLeft(cutset ISCUTF8String) ISCUTF8String
func (ISCUTF8String) TrimLeftFunc ¶
func (s ISCUTF8String) TrimLeftFunc(f func(rune) bool) ISCUTF8String
func (ISCUTF8String) TrimPrefix ¶
func (s ISCUTF8String) TrimPrefix(prefix ISCUTF8String) ISCUTF8String
func (ISCUTF8String) TrimRight ¶
func (s ISCUTF8String) TrimRight(cutset ISCUTF8String) ISCUTF8String
func (ISCUTF8String) TrimRightFunc ¶
func (s ISCUTF8String) TrimRightFunc(f func(rune) bool) ISCUTF8String
func (ISCUTF8String) TrimSpace ¶
func (s ISCUTF8String) TrimSpace() ISCUTF8String
func (ISCUTF8String) TrimSuffix ¶
func (s ISCUTF8String) TrimSuffix(suffix ISCUTF8String) ISCUTF8String
type IntRange ¶
func MakeIntRange ¶
type LinkedHashMap ¶
type LinkedHashMap[K comparable, V comparable] OrderMap[K, V]
type MapPair ¶
type MapPair[K comparable, V comparable] struct { Key K Value V }
func OrderMapToList ¶
func OrderMapToList[K comparable, V comparable](m OrderMap[K, V]) []MapPair[K, V]
type OrderMap ¶
type OrderMap[K comparable, V comparable] struct { Data map[K]V KeyList []K }
func NewOrderMap ¶
func NewOrderMap[K comparable, V comparable]() OrderMap[K, V]
func (OrderMap[K, V]) ContainsKey ¶
func (OrderMap[K, V]) ContainsValue ¶
func (OrderMap[K, V]) CountValue ¶
func (OrderMap[K, V]) FilterIndexed ¶
func (OrderMap[K, V]) FilterIndexedTo ¶
func (OrderMap[K, V]) FilterKeys ¶
func (OrderMap[K, V]) FilterKeysIndexed ¶
func (OrderMap[K, V]) FilterNotIndexed ¶
func (OrderMap[K, V]) FilterNotIndexedTo ¶
func (OrderMap[K, V]) FilterNotTo ¶
func (OrderMap[K, V]) FilterValues ¶
func (OrderMap[K, V]) FilterValuesIndexed ¶
func (OrderMap[K, V]) ForEachIndexed ¶
func (OrderMap[K, V]) JoinToString ¶
func (OrderMap[K, V]) JoinToStringFull ¶
type Properties ¶
type Stream ¶
type Stream[T any] struct { // contains filtered or unexported fields }
A Stream is a stream that can be used to do stream processing.
func StreamJust ¶
StreamJust converts the given arbitrary items to a Stream.
func StreamRange ¶
func (Stream[T]) AllMatch ¶
AllMatch returns whether all elements of this stream match the provided predicate. May not evaluate the predicate on all elements if not necessary for determining the result. If the stream is empty then true is returned and the predicate is not evaluated.
func (Stream[T]) AnyMatch ¶
AnyMatch returns whether any elements of this stream match the provided predicate. May not evaluate the predicate on all elements if not necessary for determining the result. If the stream is empty then false is returned and the predicate is not evaluated.
func (Stream[T]) Filter ¶
Filter Returns a list containing only elements matching the given predicate.
func (Stream[T]) FirsVal ¶
FirsVal returns the first element,channel is FIFO,so first goroutine will get head element or nil
func (Stream[T]) First ¶
First returns the first element,channel is FIFO,so first goroutine will get head element
func (Stream[T]) ForEach ¶
func (s Stream[T]) ForEach(fn func(T))
ForEach seals the Stream with the fn on each item, no successive operations.
func (Stream[T]) LastVal ¶
func (s Stream[T]) LastVal() (item T)
LastVal returns the last item, or nil if no items.
type StringPair ¶
func YamlToKvList ¶
func YamlToKvList(contentOfYaml string) ([]StringPair, error)
Source Files
¶
- associate.go
- banner.go
- convert.go
- equal.go
- filter.go
- find.go
- flat.go
- group.go
- ifthen.go
- jointo.go
- listobj.go
- listobj_ext.go
- map.go
- mapobj.go
- mapobj_ext.go
- match.go
- number.go
- operator.go
- ordermap.go
- pair.go
- partition.go
- queue.go
- range.go
- reduce.go
- setobj.go
- slice.go
- stream.go
- string.go
- struct.go
- take.go
- typedef.go
- utf8string.go
- yaml.go