From 8eb0bc147c3651bbdb8e0063265dfe916cc9685e Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Fri, 28 Dec 2018 12:14:11 -0500 Subject: [PATCH] router_static.go: go fmt --- api/router_static.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/router_static.go b/api/router_static.go index 2641b60..a6df069 100644 --- a/api/router_static.go +++ b/api/router_static.go @@ -2,12 +2,12 @@ package main import ( "github.com/gorilla/mux" - "strings" "io/ioutil" - "net/http" "mime" - "path" + "net/http" "os" + "path" + "strings" ) func redirectLogin(w http.ResponseWriter, r *http.Request) { @@ -111,7 +111,7 @@ func staticRouterInit(router *mux.Router) error { } } - for p, _ := range(asset) { + for p, _ := range asset { if path.Ext(p) != "" { contentType[p] = mime.TypeByExtension(path.Ext(p)) } else {