MCPcopy Create free account
hub / github.com/go-python/gopy / genPkg

Method genPkg

bind/gen.go:570–583  ·  view source on GitHub ↗
(p *Package)

Source from the content-addressed store, hash-verified

568}
569
570func (g *pyGen) genPkg(p *Package) {
571 g.pkg = p
572 g.pywrap = &printer{buf: new(bytes.Buffer), indentEach: []byte("\t")}
573 g.genPyWrapPreamble()
574 if p == goPackage {
575 g.genGoPkg()
576 g.genExtTypesPyWrap()
577 g.genPkgWrapOut()
578 } else {
579 g.genAll()
580 g.genPkgWrapOut()
581 }
582 g.pkg = nil
583}
584
585func (g *pyGen) genGoPreamble() {
586 pkgimport := ""

Callers 1

genMethod · 0.95

Calls 5

genPyWrapPreambleMethod · 0.95
genGoPkgMethod · 0.95
genExtTypesPyWrapMethod · 0.95
genPkgWrapOutMethod · 0.95
genAllMethod · 0.95

Tested by

no test coverage detected