Releases: duke-git/lancet
Releases · duke-git/lancet
v2.3.4
What's Changed
- fix(orderedmap): fix set bug by @congziqi77 in #252
- fix(algorithm): fix bug of lrucache in issue #251 by @aki-colt in #254
- fix: fix compile error when go sdk version below go@1.20 (#255) by @yguilai in #258
- feat(netutil): add async http request for http client by @aki-colt in #256
- feat:add GetExeDllVersion for fileutil,random,package by @jwwsjlm in #257
- perf(slice): make the IndexOf function thread-safe (#262) by @cannian1 in #263
- fix: [internal] Correction of word assert spelling mistakes by @feng6917 in #269
- Introducing Lancet Guru on Gurubase.io by @kursataktas in #271
- Pre-allocate memory to reduce the number of allocations by @Yurunsoft in #272
New Contributors
- @congziqi77 made their first contribution in #252
- @aki-colt made their first contribution in #254
- @jwwsjlm made their first contribution in #257
- @feng6917 made their first contribution in #269
- @kursataktas made their first contribution in #271
- @Yurunsoft made their first contribution in #272
Full Changelog: v2.3.3...v2.3.4
v1.4.6
Full Changelog: v1.4.5...v1.4.6
v1.4.5
Full Changelog: v1.4.4...v1.4.5
v2.3.3
What's Changed
- Update condition.go by @zyfxgo in #234
- feat: add RandFromGivenSlice function by @cannian1 in #235
- feat: add RandSliceFromGivenSlice function by @cannian1 in #236
- fix 删除文档中废弃的RetryDuration函数 by @DerekTond in #240
- feat(maputil): add GetValue by @yunxuanhao in #243
- fix(strutil): rename PadStart to Pad. by @kydance in #245
- doc: update contribution references by @emmanuel-ferdman in #246
New Contributors
- @zyfxgo made their first contribution in #234
- @DerekTond made their first contribution in #240
- @kydance made their first contribution in #245
- @emmanuel-ferdman made their first contribution in #246
Full Changelog: v2.3.2...v2.3.3
v1.4.4
Full Changelog: v1.4.4...v1.4.4
v2.3.2
What's Changed
- feat(slice): add UniqueByField.
- feat(maputil): add GetOrSet.
- perf(validator): check Ipv4、Ipv6 by more graceful method by @cannian1 in #220
- perf(slice): Concat() make a clearer panic description, like standard library by @cannian1 in #223
- 🐛 Fixing bug. about pointer package function, #227 #228 by @aide-cloud in #230
New Contributors
- @aide-cloud made their first contribution in #230
Full Changelog: v2.3.1...v2.3.2
v2.3.1
What's Changed
- Slice: break by @donutloop in #200
- Slice: padding by @donutloop in #201
- refactor(set): pop method randomly removes an element and return by @cannian1 in #202
- add Concat method by @cannian1 in #204
- feat(maputil): add ToSortedSlicesDefault method and ToSortedSlicesWithComparator method by @cannian1 in #206
- fix(netutil): Add proxy IP to send request by @Joker-desire in #210
- refactor(slice): optimize function by @cannian1 in #211
- refactor slice.Unique() by @coder-liyang in #215
- fix(maputil): json tag omitempty convert error by @ch3nnn in #218
New Contributors
- @Joker-desire made their first contribution in #210
- @coder-liyang made their first contribution in #215
- @ch3nnn made their first contribution in #218
Full Changelog: 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.