gofmt
This commit is contained in:
parent
e1e7c16193
commit
b8e0bd64f6
4
main.go
4
main.go
@ -4,8 +4,8 @@ import (
|
|||||||
"flag"
|
"flag"
|
||||||
"github.com/gorilla/sessions"
|
"github.com/gorilla/sessions"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
|
||||||
"math/rand"
|
"math/rand"
|
||||||
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ var static_files = flag.String("static", "./static", "location of static files")
|
|||||||
var store = sessions.NewCookieStore([]byte("hello world"))
|
var store = sessions.NewCookieStore([]byte("hello world"))
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
rand.Seed( time.Now().UTC().UnixNano())
|
rand.Seed(time.Now().UTC().UnixNano())
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
http.Handle("/",
|
http.Handle("/",
|
||||||
http.FileServer(http.Dir(*static_files)))
|
http.FileServer(http.Dir(*static_files)))
|
||||||
|
Loading…
Reference in New Issue
Block a user