mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
reflection for interface set
rename map access methods to Elem, SetElem. R=r DELTA=95 (66 added, 7 deleted, 22 changed) OCL=31456 CL=31469
This commit is contained in:
parent
0dadc4fe4f
commit
92e925778e
7 changed files with 86 additions and 27 deletions
|
|
@ -453,7 +453,7 @@ func (p *pp) printField(field reflect.Value) (was_string bool) {
|
|||
}
|
||||
p.printField(key);
|
||||
p.addstr(":");
|
||||
p.printField(f.Get(key));
|
||||
p.printField(f.Elem(key));
|
||||
}
|
||||
p.addstr("]");
|
||||
case *reflect.StructValue:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue