Skip to content

Releases: duke-git/lancet

v2.1.20

26 Apr 10:17
Compare
Choose a tag to compare

Feature:

  1. compare package: add compare package to provide a lightweight comparison function on any type.

  2. strutil package: add StringToBytes, BytesToString, IsBlank, HasPrefixAny, HasSuffixAny, IndexOffset.

  3. slice package: add FindBy, FindLastBy.

  4. netutil package: add DownloadFile, UploadFile, IsPingConnected, IsTelnetConnected.

  5. fileutil package: add IsZipFile, FileSize, MTime, Sha, ReadCsvFile.

Fix:

  1. convertor: update CopyProperties.

v1.3.8

26 Apr 10:02
Compare
Choose a tag to compare

This release version adapts to v2.1.20, which add lots of feature

  1. compare package: add compare package to provide a lightweight comparison function on any type.
  2. strutil package: add StringToBytes, BytesToString, IsBlank, HasPrefixAny, HasSuffixAny, IndexOffset. RemoveNonPrintable.
  3. netutil package: add DownloadFile, UploadFile, IsPingConnected, IsTelnetConnected.
  4. fileutil package: add CurrentPath, sZipFile, FileSize, MTime, Sha, ReadCsvFile.
  5. formatter package: add Pretty, PrettyToWriter, DecimalBytes, BinaryBytes, ParseDecimalBytes, ParseBinaryBytes.
  6. mathutil package: add AngleToRadian, RadianToAngle, PointDistance, IsPrime.
  7. validator package: add IsInt, IsFloat, IsNumber, IsASCII, IsPrintable.
  8. system package: add option support for ExecCommand function.

v2.1.19

17 Apr 07:40
Compare
Choose a tag to compare

Feature:

  1. slice package: add ReduceBy, ReduceRight.

  2. fileutil package: add CurrentPath.

  3. formatter package: add Pretty, PrettyToWriter, DecimalBytes, BinaryBytes, ParseDecimalBytes, ParseBinaryBytes

  4. validator package: add IsInt, IsFloat, IsNumber.

  5. maputil package: add MapTo.

  6. system package: add option support for ExecCommand function.

Fix:

  1. formatter package: fix bug of Comma function.

Doc:

  1. Add document and examples for stream package.

v2.1.18

03 Apr 02:17
Compare
Choose a tag to compare

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

20 Mar 08:44
Compare
Choose a tag to compare

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

01 Mar 02:15
Compare
Choose a tag to compare

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

01 Mar 02:07
Compare
Choose a tag to compare

Feature:

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

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位号码