Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ SetInputWire
Method
SetInputWire
components/components.go:458–460 ·
view source on GitHub ↗
(index int, value bool)
Source
from the content-addressed store, hash-verified
456
}
457
458
func
(c *Comparator) SetInputWire(index int, value bool) {
459
c.inputs[index].Update(value)
460
}
461
462
func
(c *Comparator) Update() {
463
// these start out as 1 and 0 respectively
Callers
nothing calls this directly
Calls
1
Update
Method · 0.65
Tested by
no test coverage detected