Releases: duke-git/lancet
Releases · duke-git/lancet
v2.1.15
Feature:
-
slice package: add new functions: DropRight, DropWhile, DropRightWhile, IsAscending, IsDescending, IsSorted.
-
convertor package: add DeepClone function to support deep copy interface.
-
xerror package: add XError struct for more contextual error handling.
Fix:
- Fix bug which AesEcbEncrypt and AesEcbDecrypt failed under key length of 24 or 32 in cryptor package.
v1.3.6
Feature:
- Convertor package: add DeepClone function to support deep copy interface.
Fix:
- Fix bug which AesEcbEncrypt and AesEcbDecrypt failed under key length is 24 or 32 in cryptor package.
v2.1.14
Feature:
- datastructure/list: add Difference, SymmetricDifference, RetainAll, DeleteAll, ForEach, Iterator, ListToMap functions for list.
Fix:
- validator package, chinesePhoneMatcher: 修复部分城市电话号码有4位区号+8位号码
v2.1.13
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
Feature:
- Strutil package: add new functions, UpperKebabCase, UpperSnakeCase.
- Validator package: add new function IsGBK.
Fix:
- System package: ExecCommand function bug in windows.
- All go lint issues.
v1.3.5
Feature:
- Strutil package: add new functions, UpperKebabCase, UpperSnakeCase.
- Validator package: add new function IsGBK.
Fix:
- System package: ExecCommand function bug in windows.
v2.1.11
Feature:
- Slice package: add new functions, Merge, Repeat, Sort, SortBy, Count, CountBy.
- Datastructure/set: add new functions NewSetFromSlice, AddIfNotExist, AddIfNotExistBy.
Fix:
- Slice package: fix logic bug of Chunk slice.
Deprecated:
- Slice package: deprecate functions SortByField, InterfaceSlice, IntSlice, StringSlice.
v2.1.10
Fix:
- Fix ZipSlip bug of fileutil/UnZip。
v1.3.4
Fix:
- Fix ZipSlip bug of fileutil/UnZip。
v2.1.9
Feature:
- Add new functions in random package: RandUpper, RandLower, RandNumeral, RandNumeralOrLetter.
- Add KeyBy and UnionBy in slice package.