Description

ConfigState houses the configuration options used by spew to format and display values. There is a global instance, Config, that is used to control all top-level Formatter and Dump functionality. Each ConfigState instance provides methods equivalent to the top-level functions.

The zero value for ConfigState provides no indentation. You would typically want to set it to a space or a tab.

Alternatively, you can use NewDefaultConfig to get a ConfigState instance with default settings. See the documentation of NewDefaultConfig for default values.

ConfigState is referenced in 0 repositories