Skip to content

Instantly share code, notes, and snippets.

@gronnbeck
Created November 22, 2016 12:33
Show Gist options
  • Save gronnbeck/688330c5bbcf8bd732aa0b28d3433314 to your computer and use it in GitHub Desktop.
Save gronnbeck/688330c5bbcf8bd732aa0b28d3433314 to your computer and use it in GitHub Desktop.
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
redisResp := redisClient.Cmd("GET", "known-key")
if redisResp.Err != nil {
panic(err)
}
str, err := redisResp.Str()
if err != nil {
panic(err)
}
w.Write([]byte(str))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment