A simple example of using Redis Pub/Sub with Go.
- Start Redis server
- Run
go run main.go
in the project root directory - Run
go run main.go
in the project root directory again to publish a message - You should see the message printed in the terminal where you ran
go run main.go
the first time