Releases: duke-git/lancet
Releases · duke-git/lancet
v1.3.3
Feature:
- Add new functions in random package: RandUpper, RandLower, RandNumeral, RandNumeralOrLetter.
v2.1.8
Feature:
- Add Pipeline in function/function.go.
- Add Replace and ReplaceAll in slice/slice.go.
- Support type alias for Number constraint (lancetconstraints/constraints.go).
v2.1.7
Feature:
- Add functions Iterate, Keys, Values for datastructure/hashmap.go.
- Refactor BeginOfWeek and EndOfWeek in datetime/datetime.go
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.