Skip to content

Releases: Goldziher/go-utils

v1.9.1

02 Dec 17:31
v1.9.1
c4f988d

Choose a tag to compare

1.9.1

  • Restore deprecated helpers removed in 1.9.0 (sliceutils FindIndexOf/Includes/Merge/Insert/Copy; dateutils BeforeOrEqual/AfterOrEqual) and point users to stdlib equivalents.
  • Re-add docs and mkdocs navigation for those deprecated helpers, with guidance toward slices/maps replacements.
  • Refine stringutils.Stringify for typed nils/pointers and clearer flow; fix lint issues.
  • Correct typo in dateutils.Ceil comment.
  • Add project CHANGELOG in Keep a Changelog format.

v1.9.0

28 Oct 05:56
dfe34e6

Choose a tag to compare

📚 Complete Documentation Coverage

This release brings comprehensive documentation for all utility functions across the entire library.

Newly Documented Packages

mathutils (7 functions)

  • Clamp, Abs, InRange, Average, Gcd, Lcm, IsPrime

ptrutils (9 functions)

  • To, Deref, Equal, Coalesce, IsNil, ToSlice, DerefSlice, NonNilSlice, ToPointerSlice

excutils (13 functions)

  • Must, MustResult, Try, Catch, RecoverWithValue
  • IgnoreErr, FirstErr, AllErr, ReturnAnyErr
  • ReturnNotNil, MustNotNil, Retry, RetryWithResult

sliceutils (18 new docs)

  • GroupBy, Partition, DistinctBy, CountBy
  • Take, Skip, TakeLast, SkipLast, TakeWhile, SkipWhile
  • MinBy, MaxBy, Head, Tail, Last, Initial, Compact, Windows

maputils (10 new docs)

  • Map, MapKeys, Invert, Pick, Omit, Has, Get, ToEntries, FromEntries, GroupBy

Documentation Infrastructure

  • Material theme: Professional documentation site matching Kreuzberg styling
  • Automatic deployment: Docs auto-deploy to GitHub Pages on every main branch push
  • Full navigation: 110+ documentation pages with logical categorization
  • Search enabled: Fast search across all documentation

CI/CD Improvements

  • Updated pre-commit hooks to ai-rulez v2.4.1
  • Enhanced docs workflow with all required MkDocs plugins
  • Improved gitignore for build artifacts

Documentation Site

📖 Visit the complete documentation at: https://goldziher.github.io/go-utils/


Full Changelog: v1.8.1...v1.9.0

What's Changed

Full Changelog: v1.8.1...v1.9.0

v1.8.1

19 May 06:32
e573a30

Choose a tag to compare

What's Changed

  • Fix: adding link to sliceutils.Chunk by @vhoen in #45
  • Chore: bump golangci/golangci-lint-action from 4 to 5 by @dependabot in #46
  • Fix: FindLastIndex function to iterate over the entire slice by @dan1elhughes in #48

New Contributors

Full Changelog: v1.8.0...v1.8.1

v1.8.0

17 Feb 18:46
066d32d

Choose a tag to compare

What's Changed

  • (chore): add capitalize function to stringutils by @K-A-I-L-A-S-H in #28
  • (chore): update the mkdocs to add stringutils/capitalize by @K-A-I-L-A-S-H in #29
  • chore: fix pre-commit install commands in CONTRIBUTING.md by @deansg in #43
  • feat: add a FlatMap function to sliceutils by @deansg in #41
  • chore: update documentation for new sliceutils.FlatMap function by @deansg in #44

New Contributors

Full Changelog: v1.7.4...v1.8.0

v1.7.4

08 Aug 16:53
20bb01e

Choose a tag to compare

  • Update Go to v1.21

v1.7.3

11 Jul 11:24
5619add

Choose a tag to compare

What's Changed

  • [dateutils.Overlap] fixing cases that were not handled and updating t… by @vhoen in #27

Full Changelog: v1.7.2...v1.7.3

v1.7.2

09 Jun 12:50
1a5f34f

Choose a tag to compare

What's Changed

  • [dateutils] add overlap func by @vhoen in #25

Full Changelog: v1.7.1...v1.7.2

v1.7.1

16 May 16:19
3a5d50f

Choose a tag to compare

What's Changed

  • fixing documentation misnamed functions by @vhoen in #24

Full Changelog: v1.7.0...v1.7.1

v1.7.0

16 May 13:48
3a3a58b

Choose a tag to compare

What's Changed

  • [dateutils] adding func BeforeOrEqual and AfterOrEqual by @vhoen in #23

Full Changelog: v1.6.0...v1.7.0

v1.6.0

28 Apr 15:31
53ab038

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.5.0...v1.6.0