MCPcopy Index your code
hub / github.com/go-python/gopy / gen

Method gen

bind/gen.go:485–502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

483}
484
485func (g *pyGen) gen() error {
486 g.pkg = nil
487 err := os.MkdirAll(g.cfg.OutputDir, 0755)
488 if err != nil {
489 return fmt.Errorf("gopy: could not create output directory: %v", err)
490 }
491
492 g.genPre()
493 g.genExtTypesGo()
494 for _, p := range Packages {
495 g.genPkg(p)
496 }
497 g.genOut()
498 if len(g.err) == 0 {
499 return nil
500 }
501 return g.err.Error()
502}
503
504func (g *pyGen) genPackageMap() {
505 g.pkgmap = make(map[string]struct{})

Callers 1

GenPyBindFunction · 0.95

Calls 5

genPreMethod · 0.95
genExtTypesGoMethod · 0.95
genPkgMethod · 0.95
genOutMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected