Struct collects information about a go struct.
| 68 | |
| 69 | // Struct collects information about a go struct. |
| 70 | type Struct struct { |
| 71 | pkg *Package |
| 72 | sym *symbol |
| 73 | obj *types.TypeName |
| 74 | |
| 75 | id string |
| 76 | doc string |
| 77 | ctors []*Func |
| 78 | meths []*Func |
| 79 | idx int // index position in list of structs |
| 80 | |
| 81 | prots Protocol |
| 82 | } |
| 83 | |
| 84 | func newStruct(p *Package, obj *types.TypeName) (*Struct, error) { |
| 85 | sym := p.syms.symtype(obj.Type()) |
nothing calls this directly
no outgoing calls
no test coverage detected