Skip to content

Releases: m4gshm/gollections

v0.0.19

16 Nov 12:17
6ed143b

Choose a tag to compare

New API:

  • op.IfGetElse

v0.0.18

10 Oct 18:24

Choose a tag to compare

fix panic on iterating over empty mutable ordered Set

v0.0.17

05 Oct 13:38

Choose a tag to compare

No backward compatibility with previous version.
Minimal go version: 1.24.

Changes:

  • removed obsolete loop iterator apis and several small ones
  • seq.Seq, seq.SeqE, seq.Seq2 are no longer aliases
  • seq.Seq, seq.SeqE, seq.Seq2 extended with a common api for chained calls
  • improved collection interfaces

New API:

  • op.IfElseGet
  • convert.NilSafe

Renamed:

  • op.IfGetElse -> op.IfGetElseGet
  • convert.Ptr -> convert.ToPtr
  • convert.PtrVal -> convert.ToVal
  • convert.NoNilPtrVal -> ToValNotNil

v0.0.16

16 Jun 21:09
500b91d

Choose a tag to compare

New features:

  • mutable/immutable constructors: NewSetOrdered, NewMapOrdered.
  • seq, seq2 converters: While, SkipWhile.
  • seq2.ToSeq converter.

v0.0.15

01 May 13:04

Choose a tag to compare

No backward compatibility with previous version.
Minimal go version: 1.24.
Changes:

  • extended seq, seq2 packages API: Head, Top, Skip, OfNext and so on.
  • introduced seqe for iterating over sequernces that can procude an error at hte any step of iteration.
  • loop API is deprecated.
  • loop.Filt, seq.Filt behavior is changed (returns an error immediately, rather than at the next iteration step).
  • new slice functions: Top, Head, Tail.
  • All, KVAll interfaces are replaced by Range, OrderedRange, KVRange.
  • ForEach, For, TrackEach, Track interfaces are deprecated
  • AddableAll, AddableAllNew methods of collections are migrated from the ForEach interface to the seq.Seq.

v0.0.14

02 Jul 18:00

Choose a tag to compare

No backward compatibility with previous version.
Changes:

  • renamed collector functions from ToMap... to Map..., ToSlice to Slice.
  • new packages seq, seq2 extends rangefunc iterators.
  • bugfixes

v0.0.13

16 Jun 17:23
119d77e

Choose a tag to compare

Minimal go version: 1.22.
No backward compatibility with previous version.
Changes:

  • api renaming: ConvCheck->ConvOK, ConvertCheck->ConvertOK.
  • new loop, slice API:
    • collectors: ToMap\Group methods with Append and Order prefix\suffix.
    • reducers : Accum, ReduceOK functions.
  • new map_ collector API: Keys, Values functions.
  • new util APIs:
    • error_.As
    • convert.ToType
    • is.Not
    • use.IfOK
  • rangefunc API: All methods of loop, collections (needs enable GOEXPERIMENT=rangefunc).

v0.0.12

31 Mar 15:07

Choose a tag to compare

Minimal go version: 1.22.
No backward compatibility with previous version.
Changes:

  • Iterator API is partially removed and replaced by loop API.
  • renamed interfaces: ForLoop->For, ForEachLoop->ForEach, TrackLoop->Track, TrackEachLoop->TrackEach
  • introduced rangefunc looping API.

v0.0.11

15 Nov 21:26
a9d6f2e

Choose a tag to compare

minimal go version: 1.21
readme: extended description of API
fix(slice): Delete function argument order
feat(map_): resolv package methods naming
refinement(sort):

  • migrated to slices.SortFunc, slices.SortStableFunc
  • api extended by functions StableSort, SortAsc, SortDesc, StableSortAsc, StableSortDesc
  • Of replaced by Asc, Desc functions readme: included shortcuts description
  • slice.Less interface replaced by slice.Comparer
  • new package comparer

v0.0.10

11 Jun 20:44

Choose a tag to compare

No backward compatibility with previous version.
Changes:

  • many methods of loop, slice, convert APIs renamed: ToValues -> PtrVal, GetValues -> NoNilPtrVal, ToKV -> KeyValue, ToKVs -> KeysValues, ExtractKeysValue -> KeysValue, ExtractKeys ->ExtraKeys, ExtractValues -> ExtraValues
  • extended erroreable API
  • loop API extended by a 'for' looping helper
  • feat(map_): filter, Get, Getter, Contains APIs
  • feat(op): Get