Giter VIP home page Giter VIP logo

rxgo's Introduction

rxgo

Rx for Go

Examples

Two observables that emit odd and even numbers.

$ go run examples/even-odd/main.go
evenSource 0
oddSource 1
evenSource 2
oddSource 3
evenSource 4
oddSource 5
evenSource 6
oddSource 7
evenSource 8

Map source to current time

$ go run examples/map/main.go
2018-12-13T14:26:44
2018-12-13T14:26:45
2018-12-13T14:26:46
2018-12-13T14:26:47
2018-12-13T14:26:48
2018-12-13T14:26:49
2018-12-13T14:26:50
2018-12-13T14:26:51
2018-12-13T14:26:52

sub2 subscribes after sub1 by 1 second

$ go run examples/subject/main.go
sub1 0
sub1 1
sub2 1
sub1 2
sub2 2
sub1 3
sub2 3
sub1 4
sub2 4
sub2 5
sub1 5
sub2 6
sub1 6
sub1 7
sub2 7
sub2 8
sub1 8
sub2 9
sub1 9

rxgo's People

Stargazers

Hao Chen avatar

Watchers

Alan Chen avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.