Skip to content

Instantly share code, notes, and snippets.

@jvatic
Last active December 7, 2015 15:11
Show Gist options
  • Save jvatic/a584622cc2346f754d24 to your computer and use it in GitHub Desktop.
Save jvatic/a584622cc2346f754d24 to your computer and use it in GitHub Desktop.
package main
import (
→ "log"
→ "net/http"
→ "github.com/gorilla/sessions"
)
func main() {
→ http.HandleFunc("/", Serve)
→ if err := http.ListenAndServe(":12345", nil); err != nil {
→ → log.Fatal(err)
→ }
}
func Serve(w http.ResponseWriter, req *http.Request) {
→ sessions.GetRegistry(req)
→ w.WriteHeader(200)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment