From 4fab4df4f284ab997f27f477d9ab7caa74d0738a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 29 Aug 2016 23:52:10 +0200 Subject: Rename --- go/react/react.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'go/react') 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, } -- cgit v1.2.3