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

Function createComponent

component/component.go:41–46  ·  view source on GitHub ↗

createComponent creates a new component instance with the given definition.

(def *Definition, cond ...Condition)

Source from the content-addressed store, hash-verified

39
40// createComponent creates a new component instance with the given definition.
41func createComponent(def *Definition, cond ...Condition) *Component {
42 return &Component{
43 definition: def,
44 conditions: cond,
45 }
46}
47
48// attachCondition attaches a condition to the component.
49func (c *Component) attachCondition(cond Condition) {

Callers 2

RegisterFunction · 0.85

Calls

no outgoing calls

Tested by 1