go-redis-pub-sub-example

A simple example of using Redis Pub/Sub with Go.

Prerequisites

Usage

  1. Start Redis server
  2. Run go run main.go in the project root directory
  3. Run go run main.go in the project root directory again to publish a message
  4. You should see the message printed in the terminal where you ran go run main.go the first time