The examples in the subdirectories demonstrate the basic usage of the streaming
package from the goadesign/pulse
repository.
To run the examples, follow these steps:
-
Make sure you have Go installed on your system. You can download and install it from the official Go website: https://golang.org/.
-
Open a terminal or command prompt.
-
Clone the
goadesign/pulse
repository by running the following command:git clone https://github.com/goadesign/pulse.git
-
Change into the example directory (e.g.
examples/streaming/single-reader
):cd pulse/examples/streaming/single-reader
-
Install the required dependencies by running the following command:
go get github.com/redis/go-redis/v9 goa.design/pulse/rmap
-
Build the Go program by executing the following command:
go build
-
Run the program using the following command:
./single-reader
This will execute the program and demonstrate the basic operations on streaming.