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

rewrite

package
v1.58.7 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rewriter

type Rewriter struct {
	// contains filtered or unexported fields
}

func New

func New(data []byte, base int) *Rewriter

func (*Rewriter) Append

func (r *Rewriter) Append(data []byte)

func (*Rewriter) Data

func (r *Rewriter) Data() []byte

func (*Rewriter) Delete

func (r *Rewriter) Delete(start, end token.Pos)

func (*Rewriter) Insert

func (r *Rewriter) Insert(start token.Pos, data []byte)

func (*Rewriter) Replace

func (r *Rewriter) Replace(start, end token.Pos, data []byte)

func (*Rewriter) ReplaceNode

func (r *Rewriter) ReplaceNode(node ast.Node, data []byte)

Jump to

Keyboard shortcuts

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