Duke Git Lancet Versions Save

A comprehensive, efficient, and reusable util function library of Go.

v2.1.18

1 year ago

Feature:

  1. mathutil package: add AngleToRadian, RadianToAngle, PointDistance, IsPrime.
  2. validator package: add IsASCII, IsPrintable.
  3. strutil package: add RemoveNonPrintable.

Fix:

  1. slice package: fix LastIndexOf bug.

v2.1.17

1 year ago

Feature:

  1. structs package: provide several high level functions to manipulate struct, tag, and field.

  2. slice package: add ForEachWithBreak.

  3. math package: add Range and RangeWithStep.

Fix:

  1. netutil package: fix bugs in StructToMap, StructToUrlValues.

v2.1.16

1 year ago

Feature:

  1. convertor package: CopyProperties.
  2. maputil package: KeysBy, ValuesBy, FilterByKeys, FilterByValues, Entries, FromEntries, Transform, MapKeys, MapValues, OmitBy, OmitByKeys, OmitByValues.
  3. strutil package: Pad, SplitWords, WordCount.
  4. slice package: ContainBy, FilterMap, FlatMap.

Fix:

  1. strutil package: fix bugs PadStart and PadEnd function.

v1.3.7

1 year ago

Feature:

  1. function package: Pipeline.
  2. strutil package: Pad, SplitWords, WordCount.
  3. convertor package: CopyProperties.

v2.1.15

1 year ago

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

1 year ago

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

1 year ago

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

1 year ago

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

1 year ago

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

1 year ago

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.