Switching to the rjson library which is more friendly to human generated json.

This commit is contained in:
spf13
2013-10-01 22:45:24 -04:00
parent 48e1068e3e
commit 18f2b82658
4 changed files with 22 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ func serve(port int) {
fmt.Println("Serving pages from " + Config.GetAbsPath(Config.PublishDir))
}
fmt.Println("Web Server is available at http://localhost:", port)
fmt.Printf("Web Server is available at http://localhost:%v\n", port)
fmt.Println("Press ctrl+c to stop")
panic(http.ListenAndServe(":"+strconv.Itoa(port), http.FileServer(http.Dir(Config.GetAbsPath(Config.PublishDir)))))
}