MCPcopy Create free account
hub / github.com/egonelbre/exp / Setup

Method Setup

fbp/graph.go:62–68  ·  view source on GitHub ↗

Setup is convenience for parsing the wiring and wiring up the graph

(def string)

Source from the content-addressed store, hash-verified

60
61// Setup is convenience for parsing the wiring and wiring up the graph
62func (g *Graph) Setup(def string) error {
63 wiring, err := ParseWiring(def)
64 if err != nil {
65 return err
66 }
67 return g.WireUp(wiring)
68}
69
70func (g *Graph) WireUp(w *Wiring) error {
71 // we add comm as a node to the graph, this simplifies all the wiring

Callers 1

mainFunction · 0.80

Calls 2

WireUpMethod · 0.95
ParseWiringFunction · 0.85

Tested by

no test coverage detected