goedit

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT, BSD-3-Clause Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edit

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

func New

func New(fset *token.FileSet, content string) *Edit

func NewWithBytes added in v1.1.0

func NewWithBytes(fset *token.FileSet, content []byte) *Edit

func (*Edit) Buffer added in v1.1.0

func (c *Edit) Buffer() *edit.Buffer

func (*Edit) Delete

func (c *Edit) Delete(start token.Pos, end token.Pos)

func (*Edit) Fset added in v1.1.0

func (c *Edit) Fset() *token.FileSet

func (*Edit) HasEdit added in v1.1.0

func (c *Edit) HasEdit() bool

func (*Edit) Insert

func (c *Edit) Insert(start token.Pos, content string)

func (*Edit) Replace

func (c *Edit) Replace(start token.Pos, end token.Pos, content string)

func (*Edit) String

func (c *Edit) String() string

Jump to

Keyboard shortcuts

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