Documentation
¶
Index ¶
- func ExtractProgram(raw string) string
- func Run(awkBin string, fieldSep string, programPath string, stdin io.Reader, ...) error
- func RunCSV(awkBin string, csvDelimiter string, programPath string, stdin io.Reader, ...) error
- func Validate(awkBin, programPath string) error
- func WriteTemp(dir, program string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractProgram ¶
ExtractProgram strips markdown fences and surrounding whitespace from model output.
func Run ¶
func Run(awkBin string, fieldSep string, programPath string, stdin io.Reader, stdout io.Writer) error
Run executes awk with optional -F and a program file, streaming stdin to stdout.
func RunCSV ¶ added in v0.2.0
func RunCSV(awkBin string, csvDelimiter string, programPath string, stdin io.Reader, stdout io.Writer) error
RunCSV parses stdin as CSV and executes awk over normalized rows. It preserves quoted fields (including commas) by parsing first, then joining fields using an internal separator that awk receives via -F.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.