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:
Russ Cox 2009-07-10 16:32:26 -07:00
parent 0dadc4fe4f
commit 92e925778e
7 changed files with 86 additions and 27 deletions

View file

@ -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: