rewrite

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MPL-2.0 Imports: 3 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) 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)

Jump to

Keyboard shortcuts

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