bench

package
v0.0.0-...-7534ea8 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockPatt

func BlockPatt(start, end string, escape p.Pattern) p.Pattern

func WordMatch

func WordMatch(words ...string) p.Pattern

Types

type Edit

type Edit struct {
	Start, End int
	Text       []byte
}

func EditToEdits

func EditToEdits(e Edit) []Edit

func GenerateEdits

func GenerateEdits(data []byte, nedits int) []Edit

func ToSingleEdits

func ToSingleEdits(edits []Edit) []Edit

type EditType

type EditType int
const (
	EditInsertNewline EditType = iota
	EditRemoveNewline
	EditWhitespace
	EditChangeComment
	EditRemoveComment
	EditChangeFunc
	EditChangeFuncQual
	EditChangeString
)

Jump to

Keyboard shortcuts

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