returning random json objects from problem
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user