package
1.21.1
Repository: https://github.com/nuvolaris/goawk.git
Documentation: pkg.go.dev

# Functions

Exec provides a simple way to parse and execute an AWK program with the given field separator.
ExecProgram executes the parsed program using the given interpreter config, returning the exit status code of the program.
New creates a reusable interpreter for the given program.

# Constants

CSVMode uses comma-separated value mode for input or output.
DefaultMode uses normal AWK field and record separators: FS and RS for input, OFS and ORS for print output.
TSVMode uses tab-separated value mode for input or output.

# Structs

Config defines the interpreter configuration for ExecProgram.
CSVInputConfig holds additional configuration for when InputMode is CSVMode or TSVMode.
CSVOutputConfig holds additional configuration for when OutputMode is CSVMode or TSVMode.
Error (actually *Error) is returned by Exec and Eval functions on interpreter error, for example FS being set to an invalid regex.
Interpreter is an interpreter for a specific program, allowing you to efficiently execute the same program over and over with different inputs.

# Type aliases

IOMode specifies the input parsing or print output mode.