This commit is contained in:
Stephen McQuay 2013-05-09 00:48:56 -07:00
parent e1e7c16193
commit b8e0bd64f6
2 changed files with 12 additions and 12 deletions

View File

@ -4,8 +4,8 @@ import (
"flag"
"github.com/gorilla/sessions"
"log"
"net/http"
"math/rand"
"net/http"
"time"
)
@ -17,7 +17,7 @@ var static_files = flag.String("static", "./static", "location of static files")
var store = sessions.NewCookieStore([]byte("hello world"))
func main() {
rand.Seed( time.Now().UTC().UnixNano())
rand.Seed(time.Now().UTC().UnixNano())
flag.Parse()
http.Handle("/",
http.FileServer(http.Dir(*static_files)))