diff options
| author | Dave Collins <[email protected]> | 2013-01-12 12:06:59 -0600 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2013-01-12 12:06:59 -0600 |
| commit | 034a2a5a5e92d7264ec7558d20f4d7746506ee8f (patch) | |
| tree | 01c534af8c7b813318a2066d7befc04666a32d75 /spew/config.go | |
| parent | 40eb25a95da22b84740d793f4279c212a865fdee (diff) | |
Implement support for unqiue config instances.
This commit adds a new type, SpewState, which can be used to create
instances with unique configuration options. The methods of SpewState are
equivalent to the top-level functions. Full documentation and examples
are included.
Diffstat (limited to 'spew/config.go')
| -rw-r--r-- | spew/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spew/config.go b/spew/config.go index 542f457..e32b224 100644 --- a/spew/config.go +++ b/spew/config.go @@ -55,3 +55,5 @@ type ConfigState struct { // Config is the active configuration in use by spew. The configuration // can be changed by modifying the contents of spew.Config. var Config ConfigState = ConfigState{Indent: " "} + +var defaultConfig = ConfigState{Indent: " "}
\ No newline at end of file |
