Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultGoMod ¶
func WriteAll ¶
WriteAll writes every default config file into dir that is not already present, leaving existing files untouched. This makes `-init-config` idempotent: re-running it on an older config dir adds newly-introduced defaults without clobbering edits or erroring on the files that already exist. The config directory is a real Go module, so editors and `go test` work without users running `go mod init`.
func WriteDefault ¶
WriteDefault writes a built-in default file into dir if it does not already exist. name must be "config.go" or "go.mod".
Types ¶
Click to show internal directories.
Click to hide internal directories.