# Packages
No description provided by the author
*
* @Author : nopsky
* @Email : [email protected]
* @Date : 2021/4/2 15:10
*/.
# Functions
AesDecrypt AesDecrypt.
AesDecryptPkcs5 解密.
AesDecryptPkcs7 解密.
AesDecryptPkcs7Base64 解密.
AesDecryptSimple 解密.
AesEncrypt AesEncrypt.
AesEncryptPkcs5 加密PKCS5.
AesEncryptPkcs7 加密PKCS5.
AesEncryptPkcs7Base64 加密PKCS5.
AesEncryptSimple 加密.
And returns result of binary AND of two UUIDs.
AttrToUnderscore 获取struct的所有属性并转为下划线模式.
Avg returns the average value of the provided first and rest Decimals.
CamelName 下划线写法转为驼峰写法.
CentToYuan 分转元.
CheckErr CheckErr.
Equal returns true if u1 and u2 equals, otherwise returns false.
FromBytes returns UUID converted from raw byte slice input.
FromBytesOrNil returns UUID converted from raw byte slice input.
FromString returns UUID parsed from string input.
FromStringOrNil returns UUID parsed from string input.
GenerUUID 生成uuid.
GetClientPublicIP 尽最大努力实现获取客户端公网 IP 的算法。 解析 X-Real-IP 和 X-Forwarded-For 以便于反向代理(nginx 或 haproxy)可以正常工作。.
GetCurve25519Key GetCurve25519Key.
GetCurve25519KeypPair GetCurve25519KeypPair.
GetExternalIP 获取本服务器的外网IP.
GetIntranetIP 获取本机IP.
GetIPAddress 通过IP获取地址.
GetRandomName 获取随机的名字.
GetRandomSalt return len=8 salt.
GetRandomString 生成随机字符串.
No description provided by the author
HashCrc32 通过字符串获取32位数字.
No description provided by the author
No description provided by the author
IsIntranet IsIntranet.
No description provided by the author
MapToQueryParamSort map 以 key1=value1 & key2=value2形式排序拼接.
Max returns the largest Decimal that was passed in the arguments.
MD5 加密.
Min returns the smallest Decimal that was passed in the arguments.
New returns a new fixed-point decimal, value * 10 ^ exp.
No description provided by the author
NewFromBigInt returns a new Decimal from a big.Int, value * 10 ^ exp.
NewFromFloat converts a float64 to Decimal.
NewFromFloatWithExponent converts a float64 to Decimal, with an arbitrary number of fractional digits.
NewFromString returns a new Decimal from a string representation.
NewPage NewPage.
NewV1 returns UUID based on current timestamp and MAC address.
NewV2 returns DCE Security UUID based on POSIX UID/GID.
NewV3 returns UUID based on MD5 hash of namespace UUID and name.
NewV4 returns random generated UUID.
NewV5 returns UUID based on SHA-1 hash of namespace UUID and name.
No description provided by the author
Or returns result of binary OR of two UUIDs.
No description provided by the author
No description provided by the author
PKCS5Padding PKCS5Padding.
PKCS5UnPadding PKCS5UnPadding.
PKCS7Padding PKCS7Padding.
PKCS7UnPadding PKCS7UnPadding.
No description provided by the author
RemoveRepeatedElement 移除重复元素.
RequireFromString returns a new Decimal from a string representation or panics if NewFromString would have returned an error.
SHA1加密.
Sign Sign.
Substr Substr.
Sum returns the combined total of the provided first and rest Decimals.
Ten2Hex 十进制转换为62进制.
将对象转换为JSON.
ToPageNumOrDefault 将字符串转换为数字类型 如果字符串为空 则赋值分页默认参数.
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
UnderscoreName 驼峰式写法转为下划线写法.
YuanToCent 元转分.
# Constants
UUID DCE domains.
UUID DCE domains.
UUID DCE domains.
UUID layout variants.
UUID layout variants.
UUID layout variants.
UUID layout variants.
# Variables
DivisionPrecision is the number of decimal places in the result when it doesn't divide exactly.
MarshalJSONWithoutQuotes should be set to true if you want the decimal to be JSON marshaled as a number, instead of as a string.
Predefined namespace UUIDs.
Predefined namespace UUIDs.
Predefined namespace UUIDs.
Predefined namespace UUIDs.
The nil UUID is special form of UUID that is specified to have all 128 bits set to zero.
Zero constant, to make computations faster.
# Structs
内嵌bytes.Buffer,支持连写.
Decimal represents a fixed-point decimal.
NullDecimal represents a nullable decimal with compatibility for scanning null values from the database.
NullUUID can be used with the standard sql package to represent a UUID value that can be NULL in the database.
Page Page.
# Type aliases
UUID representation compliant with specification described in RFC 4122.