rewrite

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoErrors
	Xerrors
	PkgErrors
)

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, in Input) error

Types

type Input

type Input struct {
	PkgNames []string
	Target   Method
	DryRun   bool
}

type Method

type Method int

type Transformer

type Transformer interface {
	Transform(pkg *packages.Package, file *ast.File) (int, error)
}

Jump to

Keyboard shortcuts

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