Duke Git Lancet Versions Save

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

v2.2.3

10 months ago

Feature:

  1. cryptor package: add Md5Byte.
  2. datetime package: add GetTodayStartTime, GetTodayEndTime.
  3. tuple package: add tuple data type and some operation on it.

Test:

  1. Add all parallel running for all unit test functions.

v2.2.2

10 months ago

Feature:

  1. convertor package: add Utf8ToGbk, GbkToUtf8.
  2. fileutil package: add WriteCsvFile, ZipAppendEntry.
  3. mathutil package: add Log, Sum.
  4. random package: add RandUniqueIntSlice.
  5. pointer package: add Of, Unwrap.
  6. strutil package: add RemoveWhiteSpace.

Fix:

  1. netutil package: fix issue#109 (add File upload for HttpPost)

v1.4.0

10 months ago

Feature:

  1. convertor package: add Utf8ToGbk, GbkToUtf8.
  2. fileutil package: add WirteCsvFile.
  3. mathutil package: add Log.
  4. random package: add RandUniqueIntSlice.
  5. strutil package: add RemoveWhiteSpace.

Fix:

  1. convertor package: fix issue#112 (precision lost when convert float32 and float64 to string)
  2. netutil package: fix issue#109 (add File upload for HttpPost)

v2.2.1

11 months ago

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

11 months ago

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

1 year ago

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

1 year ago

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

1 year ago

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

1 year ago

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

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.