Run go fmt

This commit is contained in:
Las Zenow 2012-08-15 15:12:59 +02:00
parent d924b577d1
commit 9f1204db35
7 changed files with 24 additions and 26 deletions

View file

@ -1,10 +1,10 @@
package main
import (
"strconv"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"net/http"
"strconv"
"strings"
)

View file

@ -24,13 +24,11 @@ func bookHandler(coll *mgo.Collection) func(http.ResponseWriter, *http.Request)
}
}
func fileHandler(path string) {
h := http.FileServer(http.Dir(path[1:]))
http.Handle(path, http.StripPrefix(path, h))
}
type indexData struct {
Books []Book
Count int

View file

@ -1,9 +1,9 @@
package main
import (
"labix.org/v2/mgo"
"os"
"strconv"
"labix.org/v2/mgo"
//"labix.org/v2/mgo/bson"
"net/http"
)