()
| 502 | } |
| 503 | |
| 504 | func (g *pyGen) genPackageMap() { |
| 505 | g.pkgmap = make(map[string]struct{}) |
| 506 | for _, p := range Packages { |
| 507 | g.pkgmap[p.pkg.Path()] = struct{}{} |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | func (g *pyGen) genPre() { |
| 512 | g.gofile = &printer{buf: new(bytes.Buffer), indentEach: []byte("\t")} |