Skip to content

Releases: duke-git/lancet

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.

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.