Package Usage: go: github.com/benhoyt/goawk
Package goawk is an implementation of AWK with CSV support
You can use the command-line "goawk" command or run AWK from your
Go programs using the "interp" package. The command-line program
has the same interface as regular awk:
The -F flag specifies the field separator (the default is to split
on whitespace). The -v flag allows you to set a variable to a
given value (multiple -v flags allowed). The -f flag allows you to
read AWK source from a file instead of the 'prog' command-line
argument. The rest of the arguments are input filenames (default
is to read from stdin).
A simple example (prints the sum of the numbers in the file's
second column):
To use GoAWK in your Go programs, see README.md or the "interp"
package docs.
47 versions
Latest release: about 1 year ago
127 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/benhoyt/goawk