package
1.3.122
Repository: https://github.com/muidea/magiccommon.git
Documentation: pkg.go.dev

# Functions

AesDecrypt Decrypt.
AesEncrypt Encrypt.
No description provided by the author
No description provided by the author
DecryptByAes Decrypt using AES.
No description provided by the author
EncryptByAes Encrypt using AES and then base64 encode.
ExistIntArray 是否存在数组中.
ExtractSummary 抽取摘要.
No description provided by the author
GenerateKey Generates a secure key using SHA-256.
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
IntArray2Str 数字数组转字符串.
No description provided by the author
No description provided by the author
NewCatalogRegistry create new catalog registry.
NewFilter new filter.
No description provided by the author
No description provided by the author
NewRegistry create new Registry.
NewSnowFlakeNode returns a new snowflake node that can be used to generate snowflake IDs.
No description provided by the author
NewSortHelper new SortHelper.
No description provided by the author
ParseBase2 converts a Base2 string into a snowflake ID.
ParseBase32 parses a base32 []byte into a snowflake ID NOTE: There are many different base32 implementations so becareful when doing any interoperation.
ParseBase36 converts a Base36 string into a snowflake ID.
ParseBase58 parses a base58 []byte into a snowflake ID.
ParseBase64 converts a base64 string into a snowflake ID.
ParseBytes converts a byte slice into a snowflake ID.
ParseInt64 converts an int64 into a snowflake ID.
ParseIntBytes converts an array of bytes encoded as big endian integer as a snowflake ID.
ParseString converts a string into a snowflake ID.
RandomAlphabetic Creates a random string whose length is the number of characters specified.
RandomAlphanumeric Creates a random string whose length is the number of characters specified.
RandomAlphaOrNumeric Creates a random string whose length is the number of characters specified.
RandomAscII Creates a random string whose length is the number of characters specified.
RandomIdentifyCode 生成6位随机数验证码.
RandomNumeric Creates a random string whose length is the number of characters specified.
RandomSpec0 Creates a random string based on a variety of options, using supplied source of randomness.
RandomSpec1 Creates a random string whose length is the number of characters specified.
RandomString RandomString.
RandomStringSpec0 RandomStringSpec0.
RandomStringSpec1 RandomStringSpec1.
SameIntArray 是否存在数组中.
No description provided by the author
Str2IntArray 字符串转换成数字数组.
No description provided by the author
ValidateFunc 校验是否是函数.
ValidatePtr 校验是否是指针.

# Constants

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

# Variables

Epoch is set to Oct 10 2010 10:10:10 UTC in milliseconds You may customize this to set a different epoch for your application.
ErrInvalidBase32 is returned by ParseBase32 when given an invalid []byte.
ErrInvalidBase58 is returned by ParseBase58 when given an invalid []byte.
NodeBits holds the number of bits to use for SnowFlakeNode Remember, you have a total 22 bits to share between SnowFlakeNode/Step.
StepBits holds the number of bits to use for Step Remember, you have a total 22 bits to share between SnowFlakeNode/Step.

# Structs

ContentFilter 过滤器.
A JSONSyntaxError is returned from UnmarshalJSON if an invalid ID is provided.
Pagination 页面过滤器.
ParamItems contentFilter.
A SnowFlakeNode struct holds the basic information needed for a snowflake generator node.
SortFilter 页面过滤器.
SortHelper sortHelper.

# Interfaces

CatalogObjectRegistry catalog object registry.
Filter value filter.
ObjectRegistry object 仓库.
ObjectSorter help object slice sort.
No description provided by the author

# Type aliases

An ID is a custom type used for a snowflake ID.
ObjectList object list.
No description provided by the author