pkg

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "devel"

Version indicates the build version, and is intended to be overridden via build flags.

Functions

This section is empty.

Types

type FixOptions

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

FixOptions controls the behavior of a fix operation

func DefaultFixOptions

func DefaultFixOptions() *FixOptions

DefaultFixOptions returns a default set of options

func (*FixOptions) Complete

func (o *FixOptions) Complete() error

Complete populates any derived options

func (*FixOptions) Run

func (o *FixOptions) Run() error

Run executes the fix operation

func (*FixOptions) Validate

func (o *FixOptions) Validate() error

Validate ensures the specified options are valid

Jump to

Keyboard shortcuts

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