Update README.md
This commit is contained in:
parent
691853c424
commit
ff59042e2e
|
@ -31,11 +31,12 @@ $ go get github.com/davecgh/go-spew/spew
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
To dump a variable with full newlines, indentation, type, and pointer
|
To dump a variable with full newlines, indentation, type, and pointer
|
||||||
information use Dump or Fdump:
|
information use Dump, Fdump, or Sdump:
|
||||||
|
|
||||||
```Go
|
```Go
|
||||||
spew.Dump(myVar1, myVar2, ...)
|
spew.Dump(myVar1, myVar2, ...)
|
||||||
spew.Fdump(someWriter, myVar1, myVar2, ...)
|
spew.Fdump(someWriter, myVar1, myVar2, ...)
|
||||||
|
str := spew.Sdump(myVar1, myVar2, ...)
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, if you would prefer to use format strings with a compacted inline
|
Alternatively, if you would prefer to use format strings with a compacted inline
|
||||||
|
|
Loading…
Reference in New Issue