Negroni-Example icon indicating copy to clipboard operation
Negroni-Example copied to clipboard

A simple Golang example using Negroni + Postgres

Results 3 Negroni-Example issues
Sort by recently updated
recently updated
newest added

``` package main import ( "fmt" "net/http" "os" "github.com/codegangsta/negroni" "github.com/goincremental/negroni-sessions" "github.com/goincremental/negroni-sessions/cookiestore" ) func main() { n := negroni.Classic() mux := http.NewServeMux() store := cookiestore.New([]byte("ohhhsooosecret")) n.Use(sessions.Sessions("global_session_store", store)) mux.HandleFunc("/", func(w http.ResponseWriter, r...

@adamar I followed your great example, thanks it was a big help. FYI - I noticed one issue with using HTTP Status Code 301. In certain cases my browser would...

Thanks so much for putting together this example! Is it possible to provide some instructions on how to build this application locally? Thanks!