Skip to content

Releases: elliotchance/pie

v1.37.1

03 Oct 16:18
172cf51
Compare
Choose a tag to compare
Travis:  go 1.13,  1.14, 1.15 (#163)

v1.37.0

11 Feb 06:31
6185556
Compare
Choose a tag to compare
Added Insert (#160)

Fixes #43

v1.36.0

04 Feb 20:49
dc775bf
Compare
Choose a tag to compare
Added Pop (#159)

Pop the first element of the slice.

Fixes #45

v1.35.0

03 Feb 22:03
3ee3054
Compare
Choose a tag to compare
Added Group() (#158)

Group returns a map of the value with an individual count.

Fixes #26

v1.34.0

17 Jun 23:09
Compare
Choose a tag to compare
Join() for all types (#134)

Join is also more efficient and has a special case for `[]string`.

Fixes #133

v1.33.0

27 May 23:16
Compare
Choose a tag to compare
Add Shift() and Unshift() (#156)

Shift will return two values: the shifted value and the rest slice.

Unshift adds one or more elements to the beginning of the slice and returns the new slice.

Fixes #37

v1.32.2

27 May 05:42
290807a
Compare
Choose a tag to compare
How do I exclude generated files from code coverage? (#155)

Updated README with direciton on how to exclude generated files from code coverage reports.

Fixes #154

v1.32.1

26 May 23:19
Compare
Choose a tag to compare
ElementZeroValue should be nil (#153)

ElementZeroValue should be nil when dealing with structs, instead of a new allocation.

Fixes #152

v1.32.0

22 May 23:39
Compare
Choose a tag to compare
Added Equal() (#151)

Equals compare elements from the start to the end.

If they are the same is considered the slices are equal if all elements are the same is considered the slices are equal.

If each slice == nil is considered that they're equal.

If element realizes Equals interface it uses that method, in other way uses default compare.

v1.31.0

19 May 08:07
2122094
Compare
Choose a tag to compare
ToStrings -> StringsUsing (#150)

This is a breaking change, but it's necessary to be consistent with naming of the other functions. ToStrings was chosen very early on.

FIxes #124