NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Go modules, #1003 by repository stars
Latest stable
v1.32.0
Last release 20 days ago
02 Nov 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 52 of 52 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
188 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Like v1.11.0, this release is again a small breaking change, but once again shouldn't affect many scripts (it will again only affect scripts that use…
This reverts the feature from v1.11.0 which changed the builtin functions length, substr, index, and match to use character indexes instead of byte indexes (as per the POSIX spec). The reason is because it changed those functions from O(1) to O(N), which created "accidentally quadratic" behavior in scripts that expected these functions to be O(1).
For example, @xonixx's grok.awk script on a relatively large JSON input file took about 1s in bytes mode (goawk -b), but 8 minutes (!) in the new unicode char default mode. That's extremely problematic.
Like v1.11.0, this release is again a small breaking change, but once again shouldn't affect many scripts (it will again only affect scripts that use constant indexes for substr on non-ASCII strings). I hope not many people are using interp.Config.Bytes or the goawk -b option yet, as those are gone again. Seeing v1.11.0 was only introduced a few weeks ago, I think it's worth the breakage for a performance problem of this magnitude.
Fixes https://github.com/benhoyt/goawk/issues/93: "Major speed regression for gron.awk in goawk 1.11.0+".
Nothing published for this version
Nothing published for this version
Nothing published for this version
Support RS being multiple characters and regular expressions RS (#86), allowing significantly more powerful text processing. This is a Gawk extension
Support RS being multiple characters and regular expressions RS (#86), allowing significantly more powerful text processing. This is a Gawk extension to POSIX, which says, "If RS contains more than one character, the results are unspecified."
This release adds support for "getline lvalue" forms. See #85.
This release adds support for "getline lvalue" forms. See #85.
Nothing published for this version
Nothing published for this version
This release changes the handling of the builtin functions length, substr, index, and match to use character indexes instead of byte indexes, as per t
This release changes the handling of the builtin functions length, substr, index, and match to use character indexes instead of byte indexes, as per the POSIX spec.
So this is a small backwards-incompatible change, but I think it's 1) warranted given GoAWK tries to conform to POSIX, and 2) won't break most scripts, even ones that use non-ASCII, unless they use constant indexes for substr on non-ASCII strings. To revert to the previous bytes-index behavior, set interp.Config.Bytes to true when using from Go, or use the new goawk -b option for the command-line version.
This does affect the performance of those builtins, as some operations that were O(1) are now O(N) in the length of the string. Still, v1.10.0 introduced other performance improvements, and it's pretty much a wash on the "real world" benchmarks overall.
See PR #83 and issue #35 for further discussion.
Nothing published for this version
This release includes a performance improvement and several bug fixes:
This release includes a performance improvement and several bug fixes:
This release also adds the AWKGo AWK-to-Go compiler as described here, but it's a separate executable that doesn't change GoAWK itself at all. Read more about AWKGo.
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
Fix builds on Go versions before 1.17 due to missing +build constraint. Fixes https://github.com/benhoyt/goawk/issues/74.
Fix builds on Go versions before 1.17 due to missing +build constraint. Fixes https://github.com/benhoyt/goawk/issues/74.
CLI: fix handling of "-" argument: https://github.com/benhoyt/goawk/issues/71
CLI: fix handling of "-" argument: https://github.com/benhoyt/goawk/issues/71
Includes the following features and fixes:
Includes the following features and fixes:
getline <"-" and print >"-": https://github.com/benhoyt/goawk/pull/63ShellCommand config option and change default to /bin/sh (on Unix): https://github.com/benhoyt/goawk/pull/64; or newline separator: https://github.com/benhoyt/goawk/pull/68Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix go install bug due to presence of -ftest file (see https://github.com/benhoyt/goawk/commit/0adcb1068d3f17cf59d50322e2e94aa3a2210617).
Fix go install bug due to presence of -ftest file (see https://github.com/benhoyt/goawk/commit/0adcb1068d3f17cf59d50322e2e94aa3a2210617).
Add support for "--", stop parsing flags when arg not prefixed with "-" #56
Nothing published for this version
Nothing published for this version
Don't buffer stderr: https://github.com/benhoyt/goawk/commit/86f709635946ade82d1c4da274778c3e3e5438df
fflush(): #42Fix the precedence handling when parsing unary operators, which fixes things like the "print unique lines" idiom !seen[$0]++.
Fix the precedence handling when parsing unary operators, which fixes things like the "print unique lines" idiom !seen[$0]++.
Thanks @sergeevabc. Fixes #33.
Fix handling of single-character FS.
Fix handling of single-character FS.
Per POSIX spec (and the various implementations), a 1-char FS should be handled specially as a straight string split and not a regex. However, I had overlooked this, and was only doing this in the case of "\". This fixes things like FS="|" as reported by @shah in #29 (thanks!).
Bumped up minor version, seems like a fairly significant change rather than just a patch fix.
Also fix split() to have same behavior for single-char FS.
Fixes #29.
Change command line parsing to allow -F and similar flags without a space between the option and the argument (allowed by POSIX), for example -F: (tha
Change command line parsing to allow -F and similar flags without a space between the option and the argument (allowed by POSIX), for example -F: (thanks Arnold Robbins)
Also tweaked output of -version to be just the bare version tag so it's machine-readable. -h or --help now includes the copyright message.
First release with binaries attached (see make_binaries.sh). Thanks @cup.
Simplify exec calls to use in/out/err fields directly rather than pipe
Simplify exec calls to use in/out/err fields directly rather than pipe
Add config options for "safe mode" to prevent exec and file reads/writes. This is useful for running scripts from untrusted user input.
Add config options for "safe mode" to prevent exec and file reads/writes. This is useful for running scripts from untrusted user input.
Add support for delete array (with no index). Fix bug with handling of (s)printf format string with three %'s in a row.
Add support for delete array (with no index). Fix bug with handling of (s)printf format string with three %'s in a row.
Make a[x] array access set the element if not present (per POSIX spec). This seems unintuitive to me, but it's very clear in the spec, and awk/gawk/ma
Make a[x] array access set the element if not present (per POSIX spec). This seems unintuitive to me, but it's very clear in the spec, and awk/gawk/mawk all do this.
Fix a number of issues found by running (most of) the gawk test suite.
Fix a number of issues found by running (most of) the gawk test suite.
There are still a number of skipped GAWK tests (work to do), and some of GoAWK's behavior doesn't and won't ever match GAWK's 100%. I've gone for the POSIX behavior in most cases.
The full list of changes to GoAWK is:
\\ (as other AWKs do)Fix scope issue when calling user function with global var
Fix scope issue when calling user function with global var
Only split into fields when fields or NF are accessed. This speeds up scripts that only access the line ($0) and not individual fields.
Only split into fields when fields or NF are accessed. This speeds up scripts that only access the line ($0) and not individual fields.
Fix resolving unknown var types when calling a native function. Thanks @Jeffail for reporting. Fixes #17.
Fix resolving unknown var types when calling a native function. Thanks @Jeffail for reporting. Fixes #17.
Eliminate numChecked and a couple of other speedups / simplifications.
Eliminate numChecked and a couple of other speedups / simplifications.
A couple of performance improvements related to value handling and numeric strings.
A couple of performance improvements related to value handling and numeric strings.
Added support for calling native Go functions from AWK. See documentation of the Funcs field here: https://godoc.org/github.com/benhoyt/goawk/interp#C
Added support for calling native Go functions from AWK. See documentation of the Funcs field here: https://godoc.org/github.com/benhoyt/goawk/interp#Config
Ensure printf has one or more args at parse time. Add some unit tests to get more coverage.
Ensure printf has one or more args at parse time. Add some unit tests to get more coverage.
Initial working and tested version! Read more: https://benhoyt.com/writings/goawk/
Initial working and tested version! Read more: https://benhoyt.com/writings/goawk/
Nothing published for this version
One column per quarter.