package edit
import "honnef.co/go/tools/edit"
Index ¶
- func Delete(old Ranger) analysis.TextEdit
- func Fix(msg string, edits ...analysis.TextEdit) analysis.SuggestedFix
- func ReplaceWithNode(fset *token.FileSet, old Ranger, new ast.Node) analysis.TextEdit
- func ReplaceWithPattern(pass *analysis.Pass, after pattern.Pattern, state pattern.State, node Ranger) analysis.TextEdit
- func ReplaceWithString(fset *token.FileSet, old Ranger, new string) analysis.TextEdit
- type Range
- type Ranger
Functions ¶
func Delete ¶
func Fix ¶
func Fix(msg string, edits ...analysis.TextEdit) analysis.SuggestedFix
func ReplaceWithNode ¶
func ReplaceWithPattern ¶
func ReplaceWithPattern(pass *analysis.Pass, after pattern.Pattern, state pattern.State, node Ranger) analysis.TextEdit
func ReplaceWithString ¶
Types ¶
type Range ¶
func (Range) End ¶
func (Range) Pos ¶
type Ranger ¶
Source Files ¶
edit.go
- Version
- v0.0.1-2020.1.4
- Published
- May 15, 2020
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 4 minutes ago –
Tools for package owners.