Releases: duke-git/lancet
Releases · duke-git/lancet
v2.1.6
Feature:
- Add new http client implementation, see netutil/http_client.go
- Add condition package for conditional judgment, see condition/condition.go
- Add function EncodeByte and DecodeByte, see convertor/convertor.go
- Add function IsZeroValue, see validator/validator.go
Fix:
- Fix hash algorithm bug in datastructure/HashMap.go
v1.3.2
Feature:
- Add new http client implementation, see netutil/http_client.go
- Add function EncodeByte and DecodeByte, see convertor/convertor.go
- Add function IsZeroValue, see validator/validator.go
v2.1.5
Feature:
1.add HashMap in datastructure package.
Refactor:
- change function name "ReverseStr" to "Reverse" in strutil package.
v2.1.4
feature:
- datastructer/list: LastIndexOf, LastIndexOfFunc, IndexOfFunc, Sublist, DeleteIf, Cap.
- slice: AppendIfAbsent.
v1.3.1
Feature:
- slice: ToSlice, ToSlicePointer, AppendIfAbsent.
- net: IsInternalIP, GetRequestPublicIp, EncodeUrl.
- convertor: ToChannel.
- system: GetOsBits.
v2.1.3
Feature:
- slice: Flatten
- map: IsDisjoint
- system: GetOsBits
Fix:
- aes.go: fix iv generation algorithm in functions: AesCbcEncrypt, AesCbcDecrypt
- des.go: fix iv generation algorithm in functions: DesCbcEncrypt, DesCbcDecrypt
v2.1.2
Feature:
- convertor: ToChannel, ToMap, MapToSlice, ToPointer
- slice: ToSlice, ToSlicePointer,
- netutil: GetRequestPublicIp, IsInternalIP
Refactor:
- Change some slice functions param type: any->comparable
Fix:
- netutil: fix post request multipart header bug.
- fileutil: fix some unit tests run failed.
v2.1.1
Feature:
- Add MaxHeap data structure in package datastructure.
- Add ToSlice and ToSlicePointer functions in package slice.
- Add ToPointer function in package convertor.
v2.1.0
Feature:
- Add UniqueBy function in slice/slice.go
v1.3.0
Feature:
- Add CreateDir function for create directory in fileutil/file.go
- Add IndexOf, LastIndexOf, UniqueBy, Equal and EqualWith functions in slice/slice.go
- Add SplitEx function in string/str.go