Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ SetInputWire
Method
SetInputWire
components/bus.go:25–27 ·
view source on GitHub ↗
(index int, value bool)
Source
from the content-addressed store, hash-verified
23
}
24
25
func
(b *Bus) SetInputWire(index int, value bool) {
26
b.wires[index].Update(value)
27
}
28
func
(b *Bus) GetOutputWire(index int) bool {
29
return
b.wires[index].Get()
30
}
Callers
1
SetValue
Method · 0.95
Calls
1
Update
Method · 0.65
Tested by
no test coverage detected