analyzeutil

package
v0.0.0-...-0d71e1a Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatNode

func FormatNode(fset *token.FileSet, n ast.Node) (string, error)

func PrintReplacement

func PrintReplacement(fset *token.FileSet, n ast.Node, replaceWith string) (string, error)

func ReplaceNode

func ReplaceNode(pass *analysis.Pass, n ast.Node, replaceWith string) error

Types

type Importer

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

func (*Importer) Add

func (imp *Importer) Add(fset *token.FileSet, f *ast.File, name, path string) string

func (*Importer) Rewrite

func (imp *Importer) Rewrite(pass *analysis.Pass) error

Jump to

Keyboard shortcuts

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