Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm 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 of formatting changes } Source Files ¶ View all Source files fmtcmd.go Click to show internal directories. Click to hide internal directories.