Documentation ¶
Overview ¶
Package returns implements a Go pretty-printer (like package "go/format") that also adds zero-value return values as necessary to incomplete return statements.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { Fragment bool // Accept fragment of a source file (no package statement) PrintErrors bool // Print non-fatal typechecking errors to stderr (interferes with some tools that use gofmt/goimports and expect them to only print code or diffs to stdout + stderr) AllErrors bool // Report all errors (not just the first 10 on different lines) RemoveBareReturns bool // Remove bare returns }
Options specifies options for processing files.
Click to show internal directories.
Click to hide internal directories.