NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Go modules
Go modules, #832 by repository stars
Latest stable
v0.8.6
Last release 25 days ago
29 Oct 2026
Ships fairly regularly
a new release about every 3 weeks
Most releases are documented
notes for 53 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
390 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
fix(maputil): resolve a typed string-keyed map in the get path walk https://github.com/gookit/goutil/commit/4226fda402b36e23755266e97bdf51cd17fb68e9
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).feat(maputil): support the bracket index path in the get helpers https://github.com/gookit/goutil/commit/79a3b2843d8a7f346ab6dbb999cc2de29aa9cf24
Your coding agent can read these notes before it upgrades. Set up the MCP server →
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.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...).Nothing published for this version
test: migrate the deprecated testutil/assert import to x/assert https://github.com/gookit/goutil/commit/1964d678ffdb72b9ceae652fa33fe95f8047b894
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
the Finder, so Reset() or a new find raced with the worker goroutines of the previous run.
They are per-run now, and the cached elems are appended under a mutex, so no entry is lost when
Concurrency is greater than 1.arrutil: Filter no longer panics on nil interface values, and ChunkBy bounds its
allocation to the input length.mathutil: strict mode rejects floats consistently, and unsupported pointer conversions or
nil pointer values are reported instead of being converted silently.maputil: values are merged into a nil inner map instead of being dropped.strutil: a batch of parsing and formatting fixes — zero-width runes at split boundaries,
empty replacement keys, the zero digit in base conversion, the default padding on UTF-8 text,
overflow-safe large substring lengths, inline comments split at the first marker, the configured
size-range separator, byte units without a numeric value, RFC3339 fractional seconds of variable
length, synchronised serial-number defaults, and centered strings kept within the requested width.timex: a zero base time falls back to time.Now() for the duration strings.refactor(cflag/capp): extract cmdSet and add sub command support https://github.com/gookit/goutil/commit/a2811a97d204a96be7926aef0a3d727e8417848a
cflag/capp: two-level sub commands. Build a group command, register the sub
commands on it, then add the group to the app:
group := capp.NewCmd("session", "manage sessions")
group.BoolVar(&verbose, "verbose", false, "verbose output;;v")
list := capp.NewCmd("list", "list sessions")
list.Aliases = []string{"ls"} // aliases must be set before add
group.Add(list, capp.NewCmd("send", "send a message"))
app.Add(group) // myapp session list
New API: Cmd.Add, Cmd.AddOrErr, Cmd.Sub, Cmd.HasSubs, Cmd.Parent, Cmd.Path.
A group command parses its own options before the sub command name, cannot declare
positional arguments, and with no positional args it runs its own Func or shows the
group help (myapp session -h). Nesting is recursive, but two levels are the documented
usage; see the "两级子命令" / "Two-Level Subcommands" section of cflag/README.md.
strutil.SubstrCount: params[0] and params[1] are a rune offset and a rune
length. An offset at or after the end of the string now gives an empty range (count 0)
instead of an error — the same boundary convention as Substr().timex.TryToTime: the "now" keyword honors the given base time, like "0" and the
duration strings do. time.Now() is only used when the base time is zero.strutil.SubstrCount: the default end was derived from the byte length while the
range was sliced by rune index. On short multi-byte strings the call read past the last
rune and returned a bogus count — SubstrCount("你好你好", "", 1) returned 12 instead of
4 — and longer byte lengths panicked with a slice-bounds error (#271).cflag/capp: a Cmd built from a struct literal without CFlags panicked while
rendering help or parsing; the command help now also follows the app output
(app.SetOutput) when the command did not set its own output.x/termenv: the color support level is initialized by a platform-specific init(),
so the non-Windows build no longer reports needVTP as unused (staticcheck U1000).testutil: RestoreTimeLocal() left its saved location in place, so a second
SetTimeLocal() in the same process panicked with "time local already set" and a test
could not be repeated with go test -count>1.feat(cflag): wrap usage definitions in {[...]} so desc may contain '; https://github.com/gookit/goutil/commit/068984d4b5eb98886d24cb7601dabf0caa2f193f
Nothing published for this version
fix(strutil): clamp Substr stop index to avoid out-of-range panic (#265) https://github.com/gookit/goutil/commit/f028814ae8bad86883a4e734fa47d2118933b
Nothing published for this version
Nothing published for this version
feat(envutil): add dotenv env priority option https://github.com/gookit/goutil/commit/31ec978a995208ac653c3d36457d872d35c9f4c0
Nothing published for this version
refactor(cflag): 移除无用io导入并优化帮助输出处理 https://github.com/gookit/goutil/commit/da09de6f8cdfd449ad384d070857042a3d949ad4
Nothing published for this version
refactor(termenv): 优化Windows终端颜色初始化逻辑 https://github.com/gookit/goutil/commit/e40f110795925c060dfe0939c2d711d03cbe0b31
Full Changelog: https://github.com/gookit/goutil/compare/v0.7.4...v0.7.5
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
refactor(strutil): reorganize imports and constants in convbase https://github.com/gookit/goutil/commit/55634618ddd636de0bc8effaa44525a92f71b155
Nothing published for this version
:sparkles: feat: envutil - add built in dotenv files load and parse https://github.com/gookit/goutil/commit/b30606b358540eee33d7ae3cbe94173b427cda83
Nothing published for this version
Nothing published for this version
:bug: fix: ccolor - fix NO_COLOR not working on print https://github.com/gookit/goutil/commit/1af9f3042d0dd615700b230078818089317a1420
Full Changelog: https://github.com/gookit/goutil/compare/v0.7.1...v0.7.2
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
:bug: fix: maputil - TryAnyMap convert error on input no-string key map https://github.com/gookit/goutil/commit/095d51e2f604656e40582cc95b7b1535cb9bc4
Full Changelog: https://github.com/gookit/goutil/compare/v0.7.0...v0.7.1
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
:recycle: refactoring: move the encodes package to x/encodes https://github.com/gookit/goutil/commit/275d1f4f612b1ac48bb736e3e6299a93c497f42f
Full Changelog: https://github.com/gookit/goutil/compare/v0.6.18...v0.7.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
:sparkles: fix: cflag - get app name error, path.Base not support windows https://github.com/gookit/goutil/commit/a2decabe801d464f58638e4e096e1abf68aa
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.