package
1.5.4
Repository: https://github.com/isyscore/isc-gobase.git
Documentation: pkg.go.dev

# README

isc

isc包是gobase中的基础包,有各种各样的工具

# Packages

No description provided by the author

# Functions

No description provided by the author
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.
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.
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.
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.
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.
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.
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.
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.
BigCamel 小驼峰到大驼峰:首字母变成大写: dataBaseUser -> DateBaseUser.
BigCamelToMiddleLine 大驼峰到中划线: DataBaseUser -> data-db-user.
BigCamelToPostUnder 大驼峰到后缀下划线: DataBaseUser -> data_base_user_.
BigCamelToPrePostUnder 大驼峰到前后缀下划线: DataBaseUser -> _data_base_user_.
BigCamelToPreUnder 大驼峰到前后缀下划线: DataBaseUser -> _data_base_user.
BigCamelToSmallCamel 大驼峰到小驼峰:首字母变成小写:DataBaseUser -> dataBaseUser.
BigCamelToUnderLine 大驼峰到下划线:DataBaseUser -> data_base_user.
BigCamelToUpperMiddle 大驼峰到小写中划线:DataBaseUser -> DATA-BASE-USER.
BigCamelToUpperUnder 大驼峰到大写下划线: DataBaseUser -> DATA_BASE_USER.
No description provided by the author
DataToObject 其他的类型能够按照小写字母转换到对象 其他类型: - 基本类型 - 结构体类型:转换后对象 - map类型 - 集合/分片类型 - 字符串类型:如果是json,则按照json进行转换.
Drop Returns a list containing all elements except first [n] elements.
DropLast Returns a list containing all elements except last n elements.
DropLastWhile Returns a list containing all elements except last elements that satisfy the given predicate.
DropWhile Returns a list containing all elements except first elements that satisfy the given predicate.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
获取对象的属性:一般用于访问私有属性.
No description provided by the author
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.
GroupByTo Groups elements of the original collection by the key returned by the given keySelector function appliedto each element and puts to the dest map each group key associated with a list of corresponding elements.Returns: The dest map‘s val.
GroupByTransform Groups values returned by the trans function applied to each element of the original collectionby the key returned by the given keySelector function applied to the element and puts to a mapeach group key associated with a list of corresponding values.
GroupByTransformTo Groups values returned by the trans function applied to each element of the original collectionby the key returned by the given keySelector function applied to the element and puts to the dest mapeach group key associated with a list of corresponding values.Returns: The dest map's val.
No description provided by the author
IndexOf 判断元素item是否在分片中,示例res := IndexOf[int](list,item),使用时须指明类型.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsBaseType 是否是常见基本类型.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ListEquals 比较两个数组是否相同.
ListFilter filter specificated item in a list.
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.
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.
ListFilterNot Returns a list containing all elements not matching the given predicate.
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.
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.
ListFilterNotNull Returns a list containing all elements that are not null.
ListFilterNotTo Appends all elements not matching the given predicate to the given destination.
ListFilterTo Appends all elements matching the given predicate to the given dest.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MapEquals 比较两个map是否相同.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MapToProperties 进行深层嵌套的map数据处理.
MiddleLine 小驼峰到中划线:dataBaseUser -> data-db-user.
MiddleLineToBigCamel 中划线到大驼峰:data-db-user -> DataBaseUser.
MiddleLineToSmallCamel 中划线到小驼峰:data-base-user -> dataBaseUser.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewSet 初始化并指定存储对象的类型.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ObjectToData 字段转化,其中对应字段为小写,map的话为小写.
ObjectToJson 对象转化为json,其中map对应的key大小写均可.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PartitionWithCal 计算partition数 f: 入参为数组长度,返回partition数.
PostUnder 小驼峰到后下划线:dataBaseUser -> data_base_user_.
PreFixUnderLine 小驼峰到添加前缀字符下划线:dataBaseUser -> pre_data_base_user.
PreFixUnderToSmallCamel 前缀字符下划线去掉到小驼峰:pre_data_base_user -> dataBaseUser.
PrePostUnder 小驼峰到前后缀下划线:dataBaseUser -> _data_base_user_.
PreUnder 小驼峰到前下划线:dataBaseUser -> _data_base_user.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
给对象的属性设置值:一般用于设置私有属性.
Slice 分片截取,参数详情见 IntRange ,返回新分片.
SliceContains Returns true if element is found in the collection.predicate keySelectorif you want to check item in list, please use ListContains.
No description provided by the author
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.
No description provided by the author
No description provided by the author
StreamDrain drains the given channel.
StreamJust converts the given arbitrary items to a Stream.
No description provided by the author
No description provided by the author
SubList 分片截取.
Take Returns a list containing first n elements.
TakeLast Returns a list containing last n elements.
TakeLastWhile Returns a list containing first elements satisfying the given predicate.
TakeWhile Returns a list containing first elements satisfying the given predicate.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ToLowerFirstPrefix 首字母小写.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ToUpperFirstPrefix 首字母大写.
ToUpperWord 匹配的单词变为大写 regex: 正则表达式,主要用于匹配某些字符变为大写 word: 待匹配字段.
No description provided by the author
UnderLine 小驼峰到下划线:非边缘单词开头大写变前下划线和后面大写:dataBaseUser -> data_base_user.
UnderLineToBigCamel 下划线到大驼峰:下划线后面小写变大写,下划线去掉 data_base_user -> DataBaseUser _data_base_user -> DataBaseUser _data_base_user_ -> DataBaseUser data_base_user_ -> DataBaseUser.
UnderLineToSmallCamel 下划线到小驼峰:下划线后面小写变大写,下划线去掉 data_base_user -> dataBaseUser _data_base_user -> dataBaseUser _data_base_user_ -> dataBaseUser data_base_user_ -> dataBaseUser.
大写中划线到大驼峰:DATA-BASE-USER -> DataBaseUser.
UpperUnder 小驼峰到大写下划线:dataBaseUser -> DATA_BASE_USER.
UpperUnderMiddle 小驼峰到大写中划线:dataBaseUser -> DATA-BASE-USER.
UpperUnderMiddleToSmallCamel 大写中划线到大驼峰:DATA-BASE-USER -> dataBaseUser.
UpperUnderToBigCamel 大写下划线到大驼峰:DATA_BASE_USER -> DataBaseUser.
UpperUnderToSmallCamel 大写下划线到小驼峰:DATA_BASE_USER -> dataBaseUser.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ArrayBlanks 数组缩进.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Dot 点.
IndentBlanks 缩进空格.
NewLine 换行符.
SignEqual 等号连接符.
SignSemicolon 分号连接符.
YamlNewLineDom yaml的value换行符.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A Stream is a stream that can be used to do stream processing.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author