gotools/cmd/goimports/goimports.go

var list

var write

var doDiff

var srcdir

var verbose

var cpuProfile

var memProfile

var memProfileRate

var options

var exitCode

func init() {}

func report(err error) {}

func usage() {}

func isGoFile(f os.FileInfo) bool {}

type argumentType

const fromStdin

const singleArg

const multipleArg

func processFile(filename string, in io.Reader, out io.Writer, argType argumentType) error {}

func visitFile(path string, f os.FileInfo, err error) error {}

func walkDir(path string) {}

func main() {}

var parseFlags

func bufferedFileWriter(dest string) (w io.Writer, close func()) {}

func gofmtMain() {}

func writeTempFile(dir, prefix string, data []byte) (string, error) {}

func diff(b1, b2 []byte, filename string) (data []byte, err error) {}

// replaceTempFilename replaces temporary filenames in diff with actual one.
//
// --- /tmp/gofmt316145376	2017-02-03 19:13:00.280468375 -0500
// +++ /tmp/gofmt617882815	2017-02-03 19:13:00.280468375 -0500
// ...
// ->
// --- path/to/file.go.orig	2017-02-03 19:13:00.280468375 -0500
// +++ path/to/file.go	2017-02-03 19:13:00.280468375 -0500
// ...
func replaceTempFilename(diff []byte, filename string) ([]byte, error) {}

// isFile reports whether name is a file.
func isFile(name string) bool {}

// isDir reports whether name is a directory.
func isDir(name string) bool {}