Skip to content

Releases: duke-git/lancet

v2.1.15

16 Feb 04:08
Compare
Choose a tag to compare

Feature:

  1. slice package: add new functions: DropRight, DropWhile, DropRightWhile, IsAscending, IsDescending, IsSorted.

  2. convertor package: add DeepClone function to support deep copy interface.

  3. xerror package: add XError struct for more contextual error handling.

Fix:

  1. Fix bug which AesEcbEncrypt and AesEcbDecrypt failed under key length of 24 or 32 in cryptor package.

v1.3.6

16 Feb 04:00
Compare
Choose a tag to compare

Feature:

  1. Convertor package: add DeepClone function to support deep copy interface.

Fix:

  1. Fix bug which AesEcbEncrypt and AesEcbDecrypt failed under key length is 24 or 32 in cryptor package.

v2.1.14

06 Feb 09:50
Compare
Choose a tag to compare

Feature:

  1. datastructure/list: add Difference, SymmetricDifference, RetainAll, DeleteAll, ForEach, Iterator, ListToMap functions for list.

Fix:

  1. validator package, chinesePhoneMatcher: 修复部分城市电话号码有4位区号+8位号码

v2.1.13

08 Jan 13:12
Compare
Choose a tag to compare

Feature:

Strutil package: add Substring function.
Concurrency package: add generic support for channel functions.

Doc&Test:

Test: add examples and playground demo for all functions.
Doc: update document for all packages.

v2.1.12

15 Dec 09:08
Compare
Choose a tag to compare

Feature:

  1. Strutil package: add new functions, UpperKebabCase, UpperSnakeCase.
  2. Validator package: add new function IsGBK.

Fix:

  1. System package: ExecCommand function bug in windows.
  2. All go lint issues.

v1.3.5

15 Dec 09:04
Compare
Choose a tag to compare

Feature:

  1. Strutil package: add new functions, UpperKebabCase, UpperSnakeCase.
  2. Validator package: add new function IsGBK.

Fix:

  1. System package: ExecCommand function bug in windows.

v2.1.11

04 Dec 03:17
Compare
Choose a tag to compare

Feature:

  1. Slice package: add new functions, Merge, Repeat, Sort, SortBy, Count, CountBy.
  2. Datastructure/set: add new functions NewSetFromSlice, AddIfNotExist, AddIfNotExistBy.

Fix:

  1. Slice package: fix logic bug of Chunk slice.

Deprecated:

  1. Slice package: deprecate functions SortByField, InterfaceSlice, IntSlice, StringSlice.

v2.1.10

17 Nov 08:19
Compare
Choose a tag to compare

Fix:

  1. Fix ZipSlip bug of fileutil/UnZip。

v1.3.4

17 Nov 08:18
Compare
Choose a tag to compare

Fix:

  1. Fix ZipSlip bug of fileutil/UnZip。

v2.1.9

08 Nov 07:27
Compare
Choose a tag to compare

Feature:

  1. Add new functions in random package: RandUpper, RandLower, RandNumeral, RandNumeralOrLetter.
  2. Add KeyBy and UnionBy in slice package.