modify

package
v1.16.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action func(cursor *dstutil.Cursor)

type Apply

type Apply interface {
	Apply() error
}

type File

type File interface {
	Overwrite(content string, forces ...bool) Apply
	Remove() Apply
}

type GoFile

type GoFile interface {
	Apply
	Find(matchers []match.GoNode) GoNode
}

type GoNode

type GoNode interface {
	Apply(node dst.Node) error
	Modify(actions ...Action) GoFile
}

Jump to

Keyboard shortcuts

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