Documentation ¶ Index ¶ Variables func Run(paths, extensions []string, stdin io.Reader, stdout io.Writer, opts Options) error type Options Constants ¶ This section is empty. Variables ¶ View Source var ( ErrWriteStdin = errors.New("cannot use write option with standard input") ) Functions ¶ func Run ¶ func Run( paths, extensions []string, stdin io.Reader, stdout io.Writer, opts Options, ) error Types ¶ type Options ¶ type Options struct { List bool // list files whose formatting differs Write bool // write result to (source) file instead of stdout Diff bool // display diffs instead of rewriting files } Source Files ¶ View all Source files fmtcmd.go Click to show internal directories. Click to hide internal directories.