~yerinalexey/gobin

cc0a8c2a9bc64a05490dd7c901a78c47b50d7c5f — Alexey Yerin 9 months ago c2bf477
refactor: style fix
1 files changed, 3 insertions(+), 3 deletions(-)

M main.go
M main.go => main.go +3 -3
@@ 71,8 71,8 @@ func main() {

		if err != nil {
			log.Printf("Failed to get paste list: %v\n", err)

			w.WriteHeader(500)

			return
		}



@@ 93,8 93,8 @@ func main() {
			// Not Fatalf because nobody wants server to crash when database
			// insert fails
			log.Printf("Failed to submit paste: %v\n", err)

			w.WriteHeader(500)

			return
		}



@@ 133,7 133,7 @@ func main() {
	fs := http.FileServer(http.Dir(static_root))
	r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", fs))

	/// Not found page
	// Not found page
	r.PathPrefix("/").HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
		w.WriteHeader(404)
		tmpl.ExecuteTemplate(w, "not-found", nil)