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 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)
Click to show internal directories.
Click to hide internal directories.