Skip to content

Releases: duke-git/lancet

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)

v2.2.1

01 Jun 02:48
Compare
Choose a tag to compare

Feature:

  1. datetime package: add BetweenSeconds, DayOfYear, IsWeekend.
  2. fileutil package: add WriteStringToFile, WriteBytesToFile.
  3. mathutil package: add Sin, Cos.
  4. strutil package: add ContainsAll, ContainsAny, HideString.

Fix:

  1. netutil package: fix body param bug in function HttpPost.
  2. datetime package: fix time format issue.

v1.3.9

01 Jun 02:23
Compare
Choose a tag to compare

Feature:

  1. datetime package: add AddYear, BetweenSeconds, DayOfYear, IsLeapYear, IsWeekend.
  2. fileutil package: add WriteStringToFile, WriteBytesToFile.
  3. mathutil package: add GCD, LCM, Sin, Cos.
  4. strutil package: add ContainsAll, ContainsAny, ReplaceWithMap, Trim, SplitAndTrim, HideString.

Fix:

  1. netutil package: fix bug in functions HttpPost, IsPingConnected.
  2. datetime package: fix time format issue.

v2.2.0

18 May 02:56
Compare
Choose a tag to compare

Feature:

  1. convertor package: add ToInterface.

  2. mathutil package: add GCD, LCM.

  3. strutil package: add ReplaceWithMap, Trim, SplitAndTrim.

  4. datetime package: add AddYear, IsLeapYear.

  5. stream package: add FindLast.

Fix:

  1. netutil package: fix IsPingConnected failed in Win os.
  2. mathutil package: fix Percent logic bug.