Here I'm playing with reactive programming and use Go for doing this.
My current Go version is 1.9, for installing Go have a look at their Getting Started page.
Using the RxGo library was my first guess how to start, but it might be a bad descision. I will see this in the future.
RxGo is apparently still work in progress, I hope that it is and will be a vivid project.
The first and obvious dependency is the package RxGo: go get -u github.com/reactivex/rxgo
.
I tried to install the Golang Iterator package, but this never worked out (go get google.golang.org/api/iterataor
).
It is also important to note, that I'm using the iterators of RxGo here and I did not find a way to use my own iterators yet.
You can compile the most simple test program only for now. It is more or less C&P from the introduction to RxGo.
For compiling I'm currently using this command (in rx_go/src/test-rx/
):
go build -o /your/path/to/rx_go/bin/rx1 rx1.go
/your/path/to/rx_go/bin/rx1
# -> 20
In /your/path/to/go/src/rx_go$: go build -o /your/path/to/go/bin/play-rx play-rx/play-rx.go && ../../bin/play-rx