Skip to content

Releases: duke-git/lancet

v2.2.8

11 Dec 07:09
Compare
Choose a tag to compare

Feature:

  1. random package: add RandFloat, RandFloats, RandSymbolChar.
  2. netutil package: http sendRequest support context param.
  3. slice package: add Random function to get a random item from slice.

Fix:

  1. validator package: fix IsChineseIdNum bug.
  2. datetime package: fix IsLeapYear bug.

v2.2.7

07 Oct 03:45
Compare
Choose a tag to compare

Feature:

  1. cryptor package: add GenerateRsaKeyPair, RsaEncryptOAEP, RsaDecryptOAEP.
  2. fileutil package: add ReadFile from path or url.
  3. strutil package: add IsNotBlank.
  4. datastructure package: ArrayQueue support auto scale.

Fix:

  1. fileutil package: fix CurrentPath to support windows and linux.

v1.4.2

07 Oct 03:36
Compare
Choose a tag to compare

Feature:

  1. cryptor package: add GenerateRsaKeyPair, RsaEncryptOAEP, RsaDecryptOAEP.
  2. fileutil package: add ReadFile from path or url.
  3. validator package: add IsBin, IsHex, IsBase64URL, IsJWT, IsVisa, IsMasterCard, IsAmericanExpress, IsUnionPay, IsChinaUnionPay.

v2.2.6

11 Sep 03:44
Compare
Choose a tag to compare

Feature:

  1. validator package: add IsBin, IsHex, IsBase64URL, IsJWT, IsVisa, IsMasterCard, IsAmericanExpress. Is

  2. slice package: add Partition.

Fix:

  1. convertor package: fix the bug in cloning slices.

v2.2.5

22 Aug 02:55
Compare
Choose a tag to compare

Feature:

  1. datastructure package: add CopyOnWriteList, a thread-safe list implementation.
  2. compare package: add InDelta.

Fix:

  1. fileutil package: Fix bug of Zip folder.

v2.2.4

01 Aug 02:06
Compare
Choose a tag to compare

Feature:

  1. cryptor package: add base64 support for md5, hmac, sha encrypt functions.
  2. datetime package: add NowDateOrTime, Timestamp, TimestampMilli, TimestampMicro, TimestampNano.
  3. maputil package: add ConcurrentMap, HasKey.
  4. slice package: add Join.
  5. pointer package: add UnwarpOr, UnwarpOrDefault.

Fix:

  1. fileutil package: Fix bug of CreateDir.

v1.4.1

31 Jul 08:47
Compare
Choose a tag to compare

Feature:

  1. cryptor package: add base64 support for md5, hmac, sha encrypt functions.
  2. datetime package: add NowDateOrTime, Timestamp, TimestampMilli, TimestampMicro, TimestampNano.
  3. maputil package: add HasKey.
  4. slice package: add Join.

Fix:

  1. fileutil package: Fix bug of CreateDir.

v2.2.3

03 Jul 06:13
Compare
Choose a tag to compare

Feature:

  1. cryptor package: add Md5Byte.
  2. datetime package: add GetTodayStartTime, GetTodayEndTime.
  3. tuple package: add tuple data type and some operation on it.

Test:

  1. Add all parallel running for all unit test functions.

v2.2.2

20 Jun 03:14
Compare
Choose a tag to compare

Feature:

  1. convertor package: add Utf8ToGbk, GbkToUtf8.
  2. fileutil package: add WriteCsvFile, ZipAppendEntry.
  3. mathutil package: add Log, Sum.
  4. random package: add RandUniqueIntSlice.
  5. pointer package: add Of, Unwrap.
  6. strutil package: add RemoveWhiteSpace.

Fix:

  1. netutil package: fix issue#109 (add File upload for HttpPost)

v1.4.0

20 Jun 02:25
Compare
Choose a tag to compare

Feature:

  1. convertor package: add Utf8ToGbk, GbkToUtf8.
  2. fileutil package: add WirteCsvFile.
  3. mathutil package: add Log.
  4. random package: add RandUniqueIntSlice.
  5. strutil package: add RemoveWhiteSpace.

Fix:

  1. convertor package: fix issue#112 (precision lost when convert float32 and float64 to string)
  2. netutil package: fix issue#109 (add File upload for HttpPost)