(s *Struct)
| 589 | } |
| 590 | |
| 591 | func (p *Package) addStruct(s *Struct) { |
| 592 | p.structs = append(p.structs, s) |
| 593 | s.idx = len(p.structs) - 1 |
| 594 | p.objs[s.GoName()] = s |
| 595 | } |
| 596 | |
| 597 | func (p *Package) addInterface(ifc *Interface) { |
| 598 | p.ifaces = append(p.ifaces, ifc) |