v1.4.6
Full Changelog: https://github.com/duke-git/lancet/compare/v1.4.5...v1.4.6
v2.3.4
- fix(orderedmap): fix set bug by @congziqi77 in https://github.com/duke-git/lancet/pull/252
- fix(algorithm): fix bug of lrucache in issue #251 by @aki-colt in https://github.com/duke-git/lancet/pull/254
- fix: fix compile error when go sdk version below go@1.20 (#255) by @yguilai in https://github.com/duke-git/lancet/pull/258
- feat(netutil): add async http request for http client by @aki-colt in https://github.com/duke-git/lancet/pull/256
- feat:add GetExeDllVersion for fileutil,random,package by @jwwsjlm in https://github.com/duke-git/lancet/pull/257
- perf(slice): make the IndexOf function thread-safe (#262) by @cannian1 in https://github.com/duke-git/lancet/pull/263
- fix: [internal] Correction of word assert spelling mistakes by @feng6917 in https://github.com/duke-git/lancet/pull/269
- Introducing Lancet Guru on Gurubase.io by @kursataktas in https://github.com/duke-git/lancet/pull/271
- Pre-allocate memory to reduce the number of allocations by @Yurunsoft in https://github.com/duke-git/lancet/pull/272
- @congziqi77 made their first contribution in https://github.com/duke-git/lancet/pull/252
- @aki-colt made their first contribution in https://github.com/duke-git/lancet/pull/254
- @jwwsjlm made their first contribution in https://github.com/duke-git/lancet/pull/257
- @feng6917 made their first contribution in https://github.com/duke-git/lancet/pull/269
- @kursataktas made their first contribution in https://github.com/duke-git/lancet/pull/271
- @Yurunsoft made their first contribution in https://github.com/duke-git/lancet/pull/272
Full Changelog: https://github.com/duke-git/lancet/compare/v2.3.3...v2.3.4
v1.4.5
Full Changelog: https://github.com/duke-git/lancet/compare/v1.4.4...v1.4.5
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.