returning random json objects from problem

This commit is contained in:
sm
2013-05-08 23:11:03 -07:00
parent 60fc35e6c8
commit d3cbdfaf1f
2 changed files with 24 additions and 2 deletions
+3
View File
@@ -5,6 +5,8 @@ import (
"github.com/gorilla/sessions"
"log"
"net/http"
"math/rand"
"time"
)
var addr = flag.String("addr", ":8000", "address I'll listen on.")
@@ -13,6 +15,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())
flag.Parse()
http.Handle("/",
http.FileServer(http.Dir(*static_files)))