sed

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package sed is a toy implementation of sed for making _real_ corrections only, no silly seds.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sed

type Sed struct {
	Command      string
	Replacements []string
	Options      string
}

func ParseSed

func ParseSed(str string) *Sed

func (Sed) HasMatch

func (s Sed) HasMatch(str string) bool

func (Sed) HasOption

func (s Sed) HasOption(opt string) bool

func (Sed) Replace

func (s Sed) Replace(str string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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