Skip to content

Instantly share code, notes, and snippets.

View oliamb's full-sized avatar

Olivier Amblet oliamb

  • Pix4D
  • Lausanne, Switzerland
View GitHub Profile
@jweir
jweir / redis-eventsource.go
Last active April 19, 2021 03:08
Example of using Redis PubSub and EventSource with golang
package main
import (
eventsource "github.com/antage/eventsource/http"
redis "github.com/vmihailenco/redis"
"log"
"net/http"
)
func haltOnErr(err error){