Skip to content

Releases: aidenwallis/go-utils

v0.0.19: Build for go 1.21

09 Aug 19:41
b6329c4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.18...v0.0.19

v0.0.18: Adds factory.ChainableModifier

26 May 07:59
84e04b8
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.17...v0.0.18

v0.0.17: Adds slice mutation utils

06 Apr 12:24
a70778a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.16...v0.0.17

Adds `utils.ChunkSlice`

20 Mar 00:53
0207d48
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.15...v0.0.16

Adds `utils.SliceFind`

17 Dec 19:15
ccd6b2f
Compare
Choose a tag to compare
  • Adds utils.SliceFind, an easy way to linearly test for a given value in a slice for a given value and return it (or the zero value).

Adds utils.MapKeys and utils.MapValues

26 Nov 20:00
b30be7b
Compare
Choose a tag to compare
  • Add utils.MapKeys and utils.MapValues (#19)

Add bitmask.Toggle

13 Nov 19:17
5cc8072
Compare
Choose a tag to compare
  • Adds bitmask.Toggle, a way to conditionally add/remove a bit to a bitmask based on whether it already exists.

Adds bitmask utils, removes assert dependency

11 Nov 02:07
173d076
Compare
Choose a tag to compare

Adds bitmask utils, this is a generic package and any signed or unsigned integer is supported:

  • bitmask.Add()

  • bitmask.Has()

  • bitmask.Remove()

  • Removes dependency on stretchr/testify, reducing package size!

  • Refactor CI pipeline a bit.

Adds utils.ValueAtIndex, utils.IndexInSlice and val.Default

30 Aug 12:19
ae8fff4
Compare
Choose a tag to compare

utils

  • utils.ValueAtIndex to fetch the value (or default) value at the index of a given slice. This is panic safe, and will return a bool as the second return value to indicate whether the value existed in the slice.
  • utils.IndexInSlice returns a boolean that indicates whether a value exists at a given index in a slice.

val

  • val.Default will return the default zero value for any given type parameter. This is just syntactical sugar on top of doing var v T

Adds worker.UnbufferedPool

22 Aug 07:03
120b323
Compare
Choose a tag to compare

Adds worker.UnbufferedPool, a simple wrapper for invoking goroutines and waitgroups together.