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

Function isIfaceHandle

bind/gen_func.go:210–217  ·  view source on GitHub ↗
(gdoc string)

Source from the content-addressed store, hash-verified

208}
209
210func isIfaceHandle(gdoc string) (bool, string) {
211 const PythonIface = "gopy:interface=handle"
212 if idx := strings.Index(gdoc, PythonIface); idx >= 0 {
213 gdoc = gdoc[:idx] + gdoc[idx+len(PythonIface)+1:]
214 return true, gdoc
215 }
216 return false, gdoc
217}
218
219func (g *pyGen) genFuncBody(sym *symbol, fsym *Func) {
220 isMethod := (sym != nil)

Callers 2

genFuncSigMethod · 0.85
genFuncBodyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected