Releases: duke-git/lancet
v2.1.20
Feature:
-
compare package: add compare package to provide a lightweight comparison function on any type.
-
strutil package: add StringToBytes, BytesToString, IsBlank, HasPrefixAny, HasSuffixAny, IndexOffset.
-
slice package: add FindBy, FindLastBy.
-
netutil package: add DownloadFile, UploadFile, IsPingConnected, IsTelnetConnected.
-
fileutil package: add IsZipFile, FileSize, MTime, Sha, ReadCsvFile.
Fix:
- convertor: update CopyProperties.
v1.3.8
This release version adapts to v2.1.20, which add lots of feature
- compare package: add compare package to provide a lightweight comparison function on any type.
- strutil package: add StringToBytes, BytesToString, IsBlank, HasPrefixAny, HasSuffixAny, IndexOffset. RemoveNonPrintable.
- netutil package: add DownloadFile, UploadFile, IsPingConnected, IsTelnetConnected.
- fileutil package: add CurrentPath, sZipFile, FileSize, MTime, Sha, ReadCsvFile.
- formatter package: add Pretty, PrettyToWriter, DecimalBytes, BinaryBytes, ParseDecimalBytes, ParseBinaryBytes.
- mathutil package: add AngleToRadian, RadianToAngle, PointDistance, IsPrime.
- validator package: add IsInt, IsFloat, IsNumber, IsASCII, IsPrintable.
- system package: add option support for ExecCommand function.
v2.1.19
Feature:
-
slice package: add ReduceBy, ReduceRight.
-
fileutil package: add CurrentPath.
-
formatter package: add Pretty, PrettyToWriter, DecimalBytes, BinaryBytes, ParseDecimalBytes, ParseBinaryBytes
-
validator package: add IsInt, IsFloat, IsNumber.
-
maputil package: add MapTo.
-
system package: add option support for ExecCommand function.
Fix:
- formatter package: fix bug of Comma function.
Doc:
- Add document and examples for stream package.
v2.1.18
v2.1.17
v2.1.16
Feature:
- convertor package: CopyProperties.
- maputil package: KeysBy, ValuesBy, FilterByKeys, FilterByValues, Entries, FromEntries, Transform, MapKeys, MapValues, OmitBy, OmitByKeys, OmitByValues.
- strutil package: Pad, SplitWords, WordCount.
- slice package: ContainBy, FilterMap, FlatMap.
Fix:
- strutil package: fix bugs PadStart and PadEnd function.
v1.3.7
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.