diff options
| author | Jeff Carr <[email protected]> | 2023-12-30 20:48:24 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-30 20:48:24 -0600 |
| commit | d7d3fbc3a31dbba4de1737244f39945608e5a0ac (patch) | |
| tree | 6e37fcd9ffaec23dbc81fe2d0fb57e3813bed540 /spew.go | |
| parent | 424a1b42e294e89a6f893196ebf23ba3d20572db (diff) | |
more or less functional draft
Diffstat (limited to 'spew.go')
| -rw-r--r-- | spew.go | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +package log + +import ( + origlog "log" + "github.com/davecgh/go-spew/spew" +) + +func Spew(a ...any) { + if ! SPEW { return } + origlog.Println("SPEW:", spew.Sdump(a...)) + + /* + scs := spew.ConfigState{Indent: "\t", MaxDepth: 1} + // Output using the ConfigState instance. + v := map[string]int{"one": 1} + scs.Printf("v: %v\n", v) + scs.Dump(v) + scs.Dump(a) + */ +} |
