summaryrefslogtreecommitdiff
path: root/go/react/react.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/react/react.go')
-rw-r--r--go/react/react.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/go/react/react.go b/go/react/react.go
index 0f85811..d625f9b 100644
--- a/go/react/react.go
+++ b/go/react/react.go
@@ -4,14 +4,14 @@ const testVersion = 4
/* reactor */
-type react struct {
+type reactor struct {
}
func New() Reactor {
- return &react{}
+ return &reactor{}
}
-func (r *react) CreateCompute1(c Cell, f func(int) int) ComputeCell {
+func (r *reactor) CreateCompute1(c Cell, f func(int) int) ComputeCell {
cc := &compuCell{
eval: func() int { return f(c.Value()) },
cb: make(map[CallbackHandle]func(int)),
@@ -19,7 +19,7 @@ func (r *react) CreateCompute1(c Cell, f func(int) int) ComputeCell {
return cc
}
-func (r *react) CreateCompute2(c1, c2 Cell, f func(int, int) int) ComputeCell {
+func (r *reactor) CreateCompute2(c1, c2 Cell, f func(int, int) int) ComputeCell {
cc := &compuCell{
eval: func() int { return f(c1.Value(), c2.Value()) },
cb: make(map[CallbackHandle]func(int)),
@@ -27,7 +27,7 @@ func (r *react) CreateCompute2(c1, c2 Cell, f func(int, int) int) ComputeCell {
return cc
}
-func (r *react) CreateInput(i int) InputCell {
+func (r *reactor) CreateInput(i int) InputCell {
return &inputCell{
value: i,
}