This commit is contained in:
logicaleak 2018-11-30 18:36:13 +00:00 committed by GitHub
commit 0d6b9c3403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -415,6 +415,11 @@ func (d *dumpState) dump(v reflect.Value) {
for i := 0; i < numFields; i++ {
d.indent()
vtf := vt.Field(i)
spewTag := vtf.Tag.Get("spew")
switch spewTag {
case "-":
continue
}
d.w.Write([]byte(vtf.Name))
d.w.Write(colonSpaceBytes)
d.ignoreNextIndent = true