Skip to content

build(deps): bump github.com/gookit/goutil from 0.6.16 to 0.8.6 - #105

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/github.com/gookit/goutil-0.8.6
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/github.com/gookit/goutil-0.8.6

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/gookit/goutil from 0.6.16 to 0.8.6.

Release notes

Sourced from github.com/gookit/goutil's releases.

v0.8.6

Change Log

Fixed

Other

v0.8.5

Change Log

Feature

Fixed

Other

v0.8.4

Change Log

Fixed

... (truncated)

Changelog

Sourced from github.com/gookit/goutil's changelog.

[v0.8.6] - 2026-10-29

Fixed

  • maputil.GetByPath: a typed map that the walk does not type-switch (map[string]int, map[string]bool, map[MyKey]T) was a dead end, so GetByPath("ints.a", mp) did not find a value stored as map[string]int. A map with a string-kind key type resolves by its key now (a map keyed by something else still reports not found).

[v0.8.5] - 2026-10-29

Added

  • maputil.GetByPath: the bracket index syntax works on the get side now — GetByPath("top.arr[1]", mp) reads the slice element, and a segment can carry more than one index ("top.matrix[0][1]"). GetByPathKeys and GetFromAny support it as well, and the top-level key is included ("tags[0]"), which SetByPath already did. The literal key is always matched first, so a key that really contains brackets (eg. "child[x]", "a[0]") keeps working; the dot-index style ("top.arr.1") is unchanged.

Fixed

  • strutil.WordWrap: dropped every word separator, so WordWrap("hello world", 80) returned helloworld. The spaces between words are kept and count toward the line width now; a separator becomes a newline when the next word does not fit, and a word longer than the width is still kept whole. Note: because the separators count now, a line can wrap one position earlier than before.
  • jsonutil.StripComments: removed a /* ... */ that sat inside a JSON string value, so {"header":"/* generated */"} lost its value. The block-comment pass matches string literals and line comments too and only drops the real block comments, so an escaped quote or backslash, a URL and a marker inside a line comment all survive.
  • maputil.SetByPath: a negative slice index panicked with reflect: slice index out of range, both for an index key ("list.-1") and for the bracket syntax ("list[-1]"). The index is parsed and validated now, so an invalid index returns an error and the data is left as it was; MakeByKeys keeps a negative index as a literal key instead of panicking. The get side was fixed in #294.
  • maputil.SetByPath: the bracket syntax works on the top key now — SetByPath(&mp, "list[1]", "b") updates (or grows, or creates) the list slice. It was written as a literal "list[1]" key before; a deep path like "list[0].name" works as well.
  • maputil.SetByPath: a value that does not match the slice elem type panicked with reflect.Set: value of type ... is not assignable to type ...; it returns an error now and the data is left as it was. A nil value is accepted by a nil-able elem type (any, pointer, map...).

[v0.8.4] - 2026-10-24

Fixed

  • fsutil.UpdateContents: truncated the file before reading it, so the callback always got empty contents and the file ended up empty. It now reads the current contents first, writes from offset 0 and truncates to the new length; a nil handleFn returns an error instead of panicking.
  • x/finder: the wait group, the result channel and the dir queue of a find run were fields of

... (truncated)

Commits
  • 8d1f873 docs(changelog): release v0.8.6
  • c96e793 docs(changelog): note the typed map support of the get path walk
  • 4226fda fix(maputil): resolve a typed string-keyed map in the get path walk
  • 17c8f42 docs(changelog): release v0.8.5
  • b3ad4fb docs(changelog): note the WordWrap and StripComments fixes
  • 41932f3 Preserve quoted values while stripping JSON block comments (#295)
  • c842c0d Preserve word separators when wrapping text (#296)
  • 79a3b28 feat(maputil): support the bracket index path in the get helpers
  • a6a419a fix(maputil): support the bracket index on the top key of SetByPath
  • 475295a fix(maputil): reject negative slice indexes when setting a value
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/gookit/goutil](https://github.com/gookit/goutil) from 0.6.16 to 0.8.6.
- [Release notes](https://github.com/gookit/goutil/releases)
- [Changelog](https://github.com/gookit/goutil/blob/master/CHANGELOG.md)
- [Commits](gookit/goutil@v0.6.16...v0.8.6)

---
updated-dependencies:
- dependency-name: github.com/gookit/goutil
  dependency-version: 0.8.6
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Nov 2, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Looks like github.com/gookit/goutil is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Nov 8, 2026
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/gookit/goutil-0.8.6 branch November 8, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants