- Adding
strings.TrimToOnly
.
- 🔨 Fixed buf in
strings.Indent
that caused a panic if the input string was empty.
- Adding
maps.Flip
,maps.FlipSlice
, andsets.FlipMap
. - Adding
sets.All
,sets.Any
, andsets.None
. - The signature of
sets.Delete
andsets.Insert
has changed to use variadic args to allow multiple deletes and inserts in a single call, respectively.
- Adding
bytes.ContainsOnly
,bytes.FromRange
,bytes.Reverse
,bytes.Indent
. - Adding
strings.Indent
. - Corrected documentation for
deferred.Error
which gave incorrect guidance on how to use it.
- 💥 Breaking Change 💥: Now requires Go 1.20.
- Adding deferred.Error for helping with deferred error handling.
- Adding slices.Insert
- Adding fs.CreateFS, fs.WriteFileFS, fs.ReaderFS, fs.ReaderWriterFS, and fs.WriterFS
- Adding fs.MkdirAll and fs.WriteFile
- Added maps.MergeInPlace.
- Added slices.MapSlice and slices.MapMap.
- maps.Merge now allocates room equal to the size of all input maps in the output map.
- Added slices.FirstIndex and slices.GrepIndex.
- Added set.NewSized and set.Diff.
- Added maps.Diff.
- Fixed missing test coverage on generic.FirstNonNil and generic.FirstNonZero.
- Added generic.FirstNonZero and generic.FirstNonNil.
- Added maps.Merge.
- Fix a silly release typo.
- Added set.Set.Keys method.
- Added generic.CountDeltas function.
- Added slices.FromRange function.
- Added strings.Increment, strings.IncrementWithSets, strings.IncrementSet, strings.NumericSet, strings.NumericSetRange, strings.LetterSet, strings.LetterSetRange, and strings.SeqSet.
- Added a LICENSE file.
- Added structs.ApplyDefaults function.
- Small improvement to the behavior/performance of slices.Delete
- Added slices.Map, slices.Reduce, slices.ReduceAcc, slices.Reductions, slices.ReductionAcc, slices.Sum, slices.Product, slices.Grep, slices.Any, slices.All, slices.None, slices.NotAll, slices.First, slices.FirstOr functions.
- Added slices.Head and slices.Tail functions.
- Added slices.Shuffle, slices.Sample, slices.Uniq, and slices.UniqInPlace functions.
- Added slices.Concat
- Initial release.
- Tools to makeup for limits in the std library.
- Includes generic package features: Comparison, LessThan, Equal, GreaterThan, ComparableInterface, Comparable, Compare, Max, MaxI, Min, MinI, Less, LessI, and Zero
- Includes iterable package features: Interface
- Includes maps package features: Copy, CopyInit, Clear, Iterator, Iterator.Len, Iterator.Next, Iterator.Index, Iterator.ID, Iterator.Val, Keys, Values, and KVs
- Includes set package features: Set, New, Set.Contains, Set.Insert, Set.Delete, Set.Len, Set.SubsetOf, Set.Intersects, Set.Intersection, Set.Union, Set.Difference, Copy, CopyInit
- Includes slices package features: Iterator, NewIterator, Iterator.Len, Iterator.Next, Iterator.Index, Iterator.ID, Iterator.Val, Delete, DeleteValue, DeleteAllValues, Push, Pop, Shift, Unshift
- Includes strings package features: ContainsOnly, FromRange, and Reverse