MCPcopy Create free account
hub / github.com/codnect/procyon / Constructor

Struct Constructor

component/constructor.go:27–31  ·  view source on GitHub ↗

Constructor represents a constructor function along with its arguments.

Source from the content-addressed store, hash-verified

25
26// Constructor represents a constructor function along with its arguments.
27type Constructor struct {
28 fnType reflect.Type // The type of the constructor function.
29 fnValue reflect.Value // The value of the constructor function.
30 args []Arg // The arguments of the constructor function.
31}
32
33// createConstructor validates the given ConstructorFunc and builds a Constructor metadata struct.
34// It ensures that the function is non-nil, is of kind Func, and returns exactly one result.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected