pkg

package
v0.0.0-...-dc9b69f Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixOptions

type FixOptions struct {
	WriteOnError bool
	Overwrite    bool
	Verbose      bool
	Packages     []string
	Dir          string
	Out          io.Writer
}

func DefaultFixOptions

func DefaultFixOptions() *FixOptions

func (*FixOptions) Complete

func (o *FixOptions) Complete() error

func (*FixOptions) Run

func (o *FixOptions) Run() error

func (*FixOptions) Validate

func (o *FixOptions) Validate() error

type SelectorMatcher

type SelectorMatcher func(selectorType, method string) bool

type TransformFileContext

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

func (*TransformFileContext) Error

func (c *TransformFileContext) Error(err error)

func (*TransformFileContext) Modified

func (c *TransformFileContext) Modified(msg string)

func (*TransformFileContext) Warning

func (c *TransformFileContext) Warning(msg string)

type TransformFunc

type TransformFunc func(*TransformFileContext)

func (TransformFunc) Transform

func (f TransformFunc) Transform(c *TransformFileContext)

type Transformer

type Transformer interface {
	Transform(*TransformFileContext)
}

type Transforms

type Transforms []Transformer

func (Transforms) Transform

func (t Transforms) Transform(c *TransformFileContext)

Jump to

Keyboard shortcuts

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