Skip to main content
Version: 2.25 (dev)

gofmt


Gofmt-specific options.

Backend: pants.backend.experimental.go.lint.vet

Config section: [gofmt]

Basic options

args

--gofmt-args="[<shell_str>, <shell_str>, ...]"
PANTS_GOFMT_ARGS
pants.toml
[gofmt]
args = [
<shell_str>,
<shell_str>,
...,
]
default: []

Arguments to pass directly to gofmt, e.g. --gofmt-args='-s -e'.

Only the following style related options are supported: -e, -r, -s.

skip

--[no-]gofmt-skip
PANTS_GOFMT_SKIP
pants.toml
[gofmt]
skip = <bool>
default: False

If true, don't use gofmt when running pants fmt and pants lint.

Advanced options

None

Deprecated options

None

None