v2.3.3
- Update condition.go by @zyfxgo in https://github.com/duke-git/lancet/pull/234
- feat: add RandFromGivenSlice function by @cannian1 in https://github.com/duke-git/lancet/pull/235
- feat: add RandSliceFromGivenSlice function by @cannian1 in https://github.com/duke-git/lancet/pull/236
- fix 删除文档中废弃的RetryDuration函数 by @DerekTond in https://github.com/duke-git/lancet/pull/240
- feat(maputil): add GetValue by @yunxuanhao in https://github.com/duke-git/lancet/pull/243
- fix(strutil): rename PadStart to Pad. by @kydance in https://github.com/duke-git/lancet/pull/245
- doc: update contribution references by @emmanuel-ferdman in https://github.com/duke-git/lancet/pull/246
- @zyfxgo made their first contribution in https://github.com/duke-git/lancet/pull/234
- @DerekTond made their first contribution in https://github.com/duke-git/lancet/pull/240
- @kydance made their first contribution in https://github.com/duke-git/lancet/pull/245
- @emmanuel-ferdman made their first contribution in https://github.com/duke-git/lancet/pull/246
Full Changelog: https://github.com/duke-git/lancet/compare/v2.3.2...v2.3.3
v1.4.4
Full Changelog: https://github.com/duke-git/lancet/compare/v1.4.4...v1.4.4
v2.3.2
- feat(slice): add UniqueByField.
- feat(maputil): add GetOrSet.
- perf(validator): check Ipv4、Ipv6 by more graceful method by @cannian1 in https://github.com/duke-git/lancet/pull/220
- perf(slice): Concat() make a clearer panic description, like standard library by @cannian1 in https://github.com/duke-git/lancet/pull/223
- 🐛 Fixing bug. about pointer package function, #227 #228 by @aide-cloud in https://github.com/duke-git/lancet/pull/230
- @aide-cloud made their first contribution in https://github.com/duke-git/lancet/pull/230
Full Changelog: https://github.com/duke-git/lancet/compare/v2.3.1...v2.3.2
v2.3.1
- Slice: break by @donutloop in https://github.com/duke-git/lancet/pull/200
- Slice: padding by @donutloop in https://github.com/duke-git/lancet/pull/201
- refactor(set): pop method randomly removes an element and return by @cannian1 in https://github.com/duke-git/lancet/pull/202
- add Concat method by @cannian1 in https://github.com/duke-git/lancet/pull/204
- feat(maputil): add ToSortedSlicesDefault method and ToSortedSlicesWithComparator method by @cannian1 in https://github.com/duke-git/lancet/pull/206
- fix(netutil): Add proxy IP to send request by @Joker-desire in https://github.com/duke-git/lancet/pull/210
- refactor(slice): optimize function by @cannian1 in https://github.com/duke-git/lancet/pull/211
- refactor slice.Unique() by @coder-liyang in https://github.com/duke-git/lancet/pull/215
- fix(maputil): json tag omitempty convert error by @ch3nnn in https://github.com/duke-git/lancet/pull/218
- @Joker-desire made their first contribution in https://github.com/duke-git/lancet/pull/210
- @coder-liyang made their first contribution in https://github.com/duke-git/lancet/pull/215
- @ch3nnn made their first contribution in https://github.com/duke-git/lancet/pull/218
Full Changelog: https://github.com/duke-git/lancet/compare/v2.3.0...v2.3.1
v2.3.0
Feature:
- convertor package: add
ToStdBase64
,ToUrlBase64
,ToRawStdBase64
,ToRawUrlBase64
functions. - datastructure package: add
Optional
datastructure, addReset
and refact itertor logic. addFilterByValue
for HashMap. - function package: add predicate function logic (Or, And, Nor...), add
AcceptIf
function. - fileutil package: add
CopyDir
,ParallelChunkRead
functions. - mathutil package: add
CeilToFloat
,CeilToString
,FloorToFloat
,FloorToString
functions. - strutil package: add
SubInBetween
,HammingDistance
functions. - slice package: add
SetToDefaultIf
functions.
Fix:
- maputil package: fix bug of MapTo(issue #169).
- strutil package: fix bug of After and Before function(issue #168).
- random package: fix MAXIMUM_CAPACITY bug (issue #166)
Break Change:
- retry package: Add retry backoff policy.
- datastructure pacakge: rename constructor of Set (NewSet->New, NewSetFromSlice->FromSlice),add
ToSlice
function for Set. - mathutil package: refact RoundToFloat, TruncRound, TruncRound.
Thanks @donutloop, @cannian1 , @coloraven to contribute high quality code!
v1.4.3
Feature:
- convertor package: add
MapToStruct
,ToStdBase64
,ToUrlBase64
,ToRawStdBase64
,ToRawUrlBase64
functions. - fileutil package: add
WriteMapsToCsv
,CopyDir
,ChunkRead
,ParallelChunkRead
functions. - mathutil package: add
CeilToFloat
,CeilToString
,FloorToFloat
,FloorToString
functions - strutil package: add
SubInBetween
,HammingDistance
functions.
Fix:
- strutil package: fix bug of After and Before function(issue #168).
v2.2.9
Feature:
- fileutil package: add WriteMapsToCsv function. Support delimiter param in ReadCsvFile and WriteCsvFile.
- slice package: add DeleteAt and add DeleteRange function.
Fix:
- math package: fix bug of Cos function.
- structs package: fix bug of ToMap function.
Refactor:
- random package: improve the performance of random function.
v2.2.8
Feature:
- random package: add RandFloat, RandFloats, RandSymbolChar.
- netutil package: http sendRequest support context param.
- slice package: add Random function to get a random item from slice.
Fix:
- validator package: fix IsChineseIdNum bug.
- datetime package: fix IsLeapYear bug.
v2.2.7
Feature:
- cryptor package: add GenerateRsaKeyPair, RsaEncryptOAEP, RsaDecryptOAEP.
- fileutil package: add ReadFile from path or url.
- strutil package: add IsNotBlank.
- datastructure package: ArrayQueue support auto scale.
Fix:
- fileutil package: fix CurrentPath to support windows and linux.