Skip to content

Releases: jeremmfr/go-utils

v0.12.0

13 Feb 08:06
v0.12.0
152602e
Compare
Choose a tag to compare
  • golang 1.21 is now the minimum version
  • ⚠️ ReverseSlice function in basicalter package is now deprecated
    use slices.Reverse() from the standard slices library instead
  • ⚠️ EqualSlice function in basiccheck package is now deprecated
    use slices.Equal() from the standard slices library instead
  • ⚠️ InSlice function in basiccheck package is now deprecated
    use slices.Contains() from the standard slices library instead
  • ⚠️ OneInSliceWith function in basiccheck package is now deprecated
    use slices.ContainsFunc() from the standard slices library instead

v0.11.0

26 Nov 17:39
v0.11.0
b12b43b
Compare
Choose a tag to compare
  • add SimilarSlice function in basiccheck package

v0.10.0

17 Aug 15:31
v0.10.0
bec345d
Compare
Choose a tag to compare
  • add StringHasOneOfSuffixes function in basiccheck package

v0.9.0

16 Feb 08:55
v0.9.0
caffb13
Compare
Choose a tag to compare
  • add DelRuneInStringWith and FilterRuneInStringWith functions in basicalter package (remove specific rune(s) on the value of a string pointer with functions)
  • avoid panic when find is nil with function OneInSliceWith in basiccheck package
  • avoid panic when valid is nil with function AllInSliceWith in basiccheck package
  • avoid panic when filter is nil with function FilterInSliceWith in basicalter package

v0.8.0

15 Dec 07:18
v0.8.0
3d14d23
Compare
Choose a tag to compare
  • add CutPrefixInString and CutSuffixInString functions in basicalter package (check and trim prefix/suffix on the value of a string pointer)

v0.7.0

05 Dec 08:24
v0.7.0
2b20974
Compare
Choose a tag to compare
  • ⚠️ BREAKING CHANGES: remove deprecated functions in basicalter: 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 in basicalter package (copies all key/value pairs in maps to a map)

v0.6.0

17 Nov 12:55
v0.6.0
46c028e
Compare
Choose a tag to compare
  • ⚠️ BREAKING CHANGES: remove deprecated functions in basiccheck: StringInSlice, EqualStringSlice, IntInSlice, Int64InSlice, OneOfStringsWith, AllStringsWith
  • add UniqueInSlice function with generic parameters in basicalter package to replace UniqueStrings function which is now deprecated
  • add DelInSlice function with generic parameters in basicalter package to replace DelStringInSlice function which is now deprecated
  • add FilterInSliceWith function with generic parameters in basicalter package to replace FilterStringsWith function which is now deprecated
  • add ReverseSlice function with generic parameters in basicalter package to replace ReverseStrings function which is now deprecated
  • add ReplaceInSliceWith function with generic parameters in basicalter package to replace ReplaceStringsWith function which is now deprecated

v0.5.0

10 Nov 07:51
v0.5.0
3dfdafb
Compare
Choose a tag to compare
  • golang 1.18 is now the minimum version
  • add OneInSliceWith function with generic parameters in basiccheck package to replace OneOfStringsWith function which is now deprecated
  • add InSlice function with generic parameters in basiccheck package to replace StringInSlice, IntInSlice, Int64InSlice functions which are now deprecated
  • add EqualSlice function with generic parameters in basiccheck package to replace EqualStringSlice function which is now deprecated
  • add AllInSliceWith function with generic parameters in basiccheck package to replace AllStringsWith function which is now deprecated

v0.4.1

07 Jan 16:18
v0.4.1
11d7b03
Compare
Choose a tag to compare
  • optimize UniqueStrings (reduce memory usage)

v0.4.0

05 Jan 08:18
v0.4.0
a87a313
Compare
Choose a tag to compare
  • add functions OneOfStringsWith and AllStringsWith in package basiccheck
  • add functions FilterStringsWith and ReplaceStringsWith in package basicalter