Categorygithub.com/byte-power/go-utility
modulepackage
1.0.1
Repository: https://github.com/byte-power/go-utility.git
Documentation: pkg.go.dev

# README

go-utility

Universal Utilities for Go

# Packages

No description provided by the author

# Functions

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
AnyToMapStringAny 将 Content 转化为 Map<String>Any,使其序列化时按字典序排序.
No description provided by the author
No description provided by the author
No description provided by the author
BytesToString 按string的底层结构,转换[]byte.
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
FindInStrings would return first index of `slice` if found `item`, or -1 for not.
FindInStrings would return first index of `slice` if found `item`, or -1 for not.
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
flatten map ,e.g map A { "foo":{ "bar":1 } } map B = FlattenMap("",".",A) { "foo.bar":1 }.
No description provided by the author
GenerateFixedLengthUUID generates base32 uuid with the given length.
GenerateSnowflakeID 产生随机ID.
No description provided by the author
GenPassword 生成随机密码,32位长度,只包含小写英文及数字,开头不是数字.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InitSnowflakeNode 使用index初始化随机ID生成器,index需在[0,1023]之间.
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
Range with [lower, upper].
No description provided by the author
No description provided by the author
Range with [lower, upper).
No description provided by the author
Wrap nullable pointer as Optional, nil with NoneOptional, non-nil with SomeOptional.
No description provided by the author
ParseTimeInDay would parse TimeInDay from time string, e.g.
RemovePrefixKeys 删除 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
No description provided by the author
StringToBytes 按[]byte的底层结构,转换字符串,len与cap皆为字符串的len.
StringToChunks split a string into string slices with element's size <= chunkSize Examples: StringToChunks("abcd", 1) => []string{"a", "b", "c", "d"} StringToChunks("abcd", 2) => []string{"ab", "cd"} StringToChunks("abcd", 3) => []string{"abc", "d"} stringToChunks("abcd", 4) => []string{"abcd"} stringToChunks("abcd", 5) => []string{"abcd"}.
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
Time duration for one day.
No description provided by the author

# Variables

No description provided by the author

# Structs

Optional is a type represents either a wrapped value or `nil`, the absence of a value.
Range of any number `Bound`.
A value that represents either a success or a failure, including an associated value in each case.
No description provided by the author
An unordered collection of unique elements.
No description provided by the author

# Interfaces

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