Permalink
Browse files

improve Struct output info

  • Loading branch information...
kicool committed May 5, 2012
1 parent 13ec655 commit b81acbd21426431a5aa9fa70b920ad144ee186b1
Showing with 3 additions and 1 deletion.
  1. +3 −1 dump/dump.go
View
@@ -137,7 +137,9 @@ func Fdump(out io.Writer, v_ interface{}) {
d += 1
for i := 0; i < vl; i++ {
pad()
- fmt.Fprint(out, v.Field(i).Type())
+ fmt.Fprint(out, vt.Field(i).Name)
+ fmt.Fprint(out, "/")
+ fmt.Fprint(out, vt.Field(i).Type)
fmt.Fprint(out, ": ")
dump(v.Field(i), d, &emptyString, nil)
if i != vl-1 {

0 comments on commit b81acbd

Please sign in to comment.