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

Struct Func

bind/types.go:363–377  ·  view source on GitHub ↗

Func Func collects information about a go func/method.

Source from the content-addressed store, hash-verified

361
362// Func collects information about a go func/method.
363type Func struct {
364 pkg *Package
365 sig *Signature
366 typ types.Type
367 obj types.Object
368 name string
369
370 id string
371 doc string
372 ret types.Type // return type, if any
373 err bool // true if original go func has comma-error
374 ctor bool // true if this is a newXXX function
375 hasfun bool // true if this function has a function argument
376 isVariadic bool // True, if this is a variadic function.
377}
378
379func newFuncFrom(p *Package, parent string, obj types.Object, sig *types.Signature) (*Func, error) {
380 ret, haserr, hasfun, err := isPyCompatFunc(sig)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected