Help us shape the future of Go! Take the 2026 Go Developer Survey

sed

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package sed implements the `sed` built-in.

Implements GNU-ish sed with address forms (line numbers, $, /regex/, ranges N,M, step N~step), commands s/g/i/p/N, d, p, q, n, N, a\, i\, c\, y///, =, labels :LBL, b LBL, t LBL, T LBL. Extended regex via -E/-r. Programs may come from a positional argument, -e SCRIPT (repeatable), or -f FILE (repeatable).

Honors Context.Limits.MaxSedIterations as a per-cycle counter: every iteration through the program (including label branches) ticks once; exceeding the cap aborts with exit 2.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() command.Command

New returns the sed command.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL