Releases: jeremmfr/go-utils
Releases · jeremmfr/go-utils
v0.12.0
- golang 1.21 is now the minimum version
⚠️ ReverseSlice
function inbasicalter
package is now deprecated
use slices.Reverse() from the standard slices library instead⚠️ EqualSlice
function inbasiccheck
package is now deprecated
use slices.Equal() from the standard slices library instead⚠️ InSlice
function inbasiccheck
package is now deprecated
use slices.Contains() from the standard slices library instead⚠️ OneInSliceWith
function inbasiccheck
package is now deprecated
use slices.ContainsFunc() from the standard slices library instead
v0.11.0
v0.10.0
v0.9.0
- add
DelRuneInStringWith
andFilterRuneInStringWith
functions inbasicalter
package (remove specific rune(s) on the value of a string pointer with functions) - avoid panic when
find
is nil with functionOneInSliceWith
inbasiccheck
package - avoid panic when
valid
is nil with functionAllInSliceWith
inbasiccheck
package - avoid panic when
filter
is nil with functionFilterInSliceWith
inbasicalter
package
v0.8.0
v0.7.0
⚠️ BREAKING CHANGES: remove deprecated functions inbasicalter
:UniqueStrings
,DelStringInSlice
,FilterStringsWith
,ReverseStrings
,ReplaceStringsWith
- add new
basicnew
package with this functions:MapKeys
: MapKeys generate a new slice with all keys of a map.MapValues
: MapValues generate a new slice with all values of a map.
- add
MergeMaps
function inbasicalter
package (copies all key/value pairs in maps to a map)
v0.6.0
⚠️ BREAKING CHANGES: remove deprecated functions in basiccheck:StringInSlice
,EqualStringSlice
,IntInSlice
,Int64InSlice
,OneOfStringsWith
,AllStringsWith
- add
UniqueInSlice
function with generic parameters inbasicalter
package to replaceUniqueStrings
function which is now deprecated - add
DelInSlice
function with generic parameters inbasicalter
package to replaceDelStringInSlice
function which is now deprecated - add
FilterInSliceWith
function with generic parameters inbasicalter
package to replaceFilterStringsWith
function which is now deprecated - add
ReverseSlice
function with generic parameters inbasicalter
package to replaceReverseStrings
function which is now deprecated - add
ReplaceInSliceWith
function with generic parameters inbasicalter
package to replaceReplaceStringsWith
function which is now deprecated
v0.5.0
- golang 1.18 is now the minimum version
- add
OneInSliceWith
function with generic parameters inbasiccheck
package to replaceOneOfStringsWith
function which is now deprecated - add
InSlice
function with generic parameters inbasiccheck
package to replaceStringInSlice
,IntInSlice
,Int64InSlice
functions which are now deprecated - add
EqualSlice
function with generic parameters inbasiccheck
package to replaceEqualStringSlice
function which is now deprecated - add
AllInSliceWith
function with generic parameters inbasiccheck
package to replaceAllStringsWith
function which is now deprecated