Samber Lo Versions Save

💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)

v1.39.0

5 months ago

Adding lo.IsNil helper

v1.38.0

1 year ago

Adding:

  • lo.ValueOr
  • lo.DebounceBy
  • lo.EmptyableToPtr

Improvement:

  • Substring: add support for non-english chars

Fix:

  • Async: Fix goroutine leak

v1.38.1

1 year ago

Improvement:

  • Async and AsyncX: now returns <-chan T instead of chan T

v1.37.0

1 year ago

Adding:

  • lo.PartialX
  • lo.Transaction

Improvement:

  • lo.Associate / lo.SliceToMap: faster memory allocation

Chore:

  • Remove *_test.go files from releases, in order to cleanup dev dependencies

v1.36.0

1 year ago

Adding:

  • lo.AttemptWhile
  • lo.AttemptWhileWithDelay

v1.35.0

1 year ago

Adding:

  • lo.RandomString
  • lo.BufferWithTimeout (alias to lo.BatchWithTimeout)
  • lo.Buffer (alias to lo.Batch)

Change:

  • lo.Slice: avoid panic caused by out-of-bounds

Deprecation:

  • lo.BatchWithTimeout
  • lo.Batch

v1.34.0

1 year ago

Improving:

  • lo.Union: faster and can receive more than 2 lists

Adding:

  • lo.FanIn (alias to lo.ChannelMerge)
  • lo.FanOut

Deprecation:

  • lo.ChannelMerge

v1.33.0

1 year ago

Adding:

  • lo.ChannelMerge

Improving:

  • helpers with callbacks/predicates/iteratee now have named arguments, for easier autocompletion

v1.32.0

1 year ago

Adding:

  • lo.ChannelToSlice
  • lo.CountValues
  • lo.CountValuesBy
  • lo.MapEntries
  • lo.Sum
  • lo.Interleave
  • TupleX.Unpack()

v1.31.0

1 year ago

Adding:

  • lo.SliceToChannel
  • lo.Generator
  • lo.Batch
  • lo.BatchWithTimeout