Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 1.38 KB

README.md

File metadata and controls

33 lines (18 loc) · 1.38 KB

RxGo Playground

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.

Dependencies

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.

Compiling

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

Executing

/your/path/to/rx_go/bin/rx1
# -> 20

Building & executing the play programm

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