- 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
- add
SimilarSlice
function inbasiccheck
package
- add
StringHasOneOfSuffixes
function inbasiccheck
package
- 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
- add
CutPrefixInString
andCutSuffixInString
functions inbasicalter
package (check and trim prefix/suffix on the value of a string pointer)
⚠️ 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)
⚠️ BREAKING CHANGES: remove deprecated functions inbasiccheck
: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
- 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
- optimize
UniqueStrings
(reduce memory usage)
- add
OneOfStringsWith
andAllStringsWith
functions inbasiccheck
package - add
FilterStringsWith
andReplaceStringsWith
functions inbasicalter
package
- optimize
AbsoluteInt
(with Two's complement implementation) - panic if call
AbsoluteInt
with the minimum value of integers (the absolute of the minimum value of integers is impossible to return)
- simplify
ReverseStrings
to reverse original slice
- add
ReverseStrings
function - rename
CheckStringHasOneOfPrefixes
toStringHasOneOfPrefixes
- fix useless return slice for SortStringsByLength functions
- fix missing function comments and variable name
First release