summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-08-29 23:52:10 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-08-29 23:52:10 +0200
commit4fab4df4f284ab997f27f477d9ab7caa74d0738a (patch)
tree7ca9b0e8faac4f7236afb1ec623242b8282e4b2d
parent30c5fc3a334748eafec1cadf15307af542a377af (diff)
Rename
-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,
}