Releases: duke-git/lancet
Releases · duke-git/lancet
v2.2.8
Feature:
- random package: add RandFloat, RandFloats, RandSymbolChar.
- netutil package: http sendRequest support context param.
- slice package: add Random function to get a random item from slice.
Fix:
- validator package: fix IsChineseIdNum bug.
- datetime package: fix IsLeapYear bug.
v2.2.7
Feature:
- cryptor package: add GenerateRsaKeyPair, RsaEncryptOAEP, RsaDecryptOAEP.
- fileutil package: add ReadFile from path or url.
- strutil package: add IsNotBlank.
- datastructure package: ArrayQueue support auto scale.
Fix:
- fileutil package: fix CurrentPath to support windows and linux.
v1.4.2
Feature:
- cryptor package: add GenerateRsaKeyPair, RsaEncryptOAEP, RsaDecryptOAEP.
- fileutil package: add ReadFile from path or url.
- validator package: add IsBin, IsHex, IsBase64URL, IsJWT, IsVisa, IsMasterCard, IsAmericanExpress, IsUnionPay, IsChinaUnionPay.
v2.2.6
v2.2.5
v2.2.4
Feature:
- cryptor package: add base64 support for md5, hmac, sha encrypt functions.
- datetime package: add NowDateOrTime, Timestamp, TimestampMilli, TimestampMicro, TimestampNano.
- maputil package: add ConcurrentMap, HasKey.
- slice package: add Join.
- pointer package: add UnwarpOr, UnwarpOrDefault.
Fix:
- fileutil package: Fix bug of CreateDir.
v1.4.1
Feature:
- cryptor package: add base64 support for md5, hmac, sha encrypt functions.
- datetime package: add NowDateOrTime, Timestamp, TimestampMilli, TimestampMicro, TimestampNano.
- maputil package: add HasKey.
- slice package: add Join.
Fix:
- fileutil package: Fix bug of CreateDir.
v2.2.3
v2.2.2
Feature:
- convertor package: add Utf8ToGbk, GbkToUtf8.
- fileutil package: add WriteCsvFile, ZipAppendEntry.
- mathutil package: add Log, Sum.
- random package: add RandUniqueIntSlice.
- pointer package: add Of, Unwrap.
- strutil package: add RemoveWhiteSpace.
Fix:
- netutil package: fix issue#109 (add File upload for HttpPost)
v1.4.0
Feature:
- convertor package: add Utf8ToGbk, GbkToUtf8.
- fileutil package: add WirteCsvFile.
- mathutil package: add Log.
- random package: add RandUniqueIntSlice.
- strutil package: add RemoveWhiteSpace.
Fix:
- convertor package: fix issue#112 (precision lost when convert float32 and float64 to string)
- netutil package: fix issue#109 (add File upload for HttpPost)