quickfix

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(filename string, contents []byte, fixes []TextEdit) error

Types

type TextEdit

type TextEdit struct {
	StartPos int
	EndPos   int

	// Replacement is a text to be inserted as a Replacement.
	Replacement string
}

TextEdit is a suggested issue fix.

More or less, it represents our version of the https://godoc.org/golang.org/x/tools/go/analysis#TextEdit which is a part of https://godoc.org/golang.org/x/tools/go/analysis#SuggestedFix.

Jump to

Keyboard shortcuts

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