gofmt -l -w .

This commit is contained in:
nikk gitanes
2021-09-11 22:50:56 +03:00
parent 97361015dc
commit ef964829e6
2 changed files with 7 additions and 7 deletions

View File

@@ -90,11 +90,11 @@ func RouteWebPages(route *gin.RouterGroup) {
mime.AddExtensionType(".map", "application/json")
mime.AddExtensionType(".webmanifest", "application/manifest+json")
// sort fmap
keys := make([]string, 0, len(fmap))
for key := range fmap {
keys = append(keys, key)
}
sort.Strings(keys)
keys := make([]string, 0, len(fmap))
for key := range fmap {
keys = append(keys, key)
}
sort.Strings(keys)
for _, link := range keys {
fmime := mime.TypeByExtension(filepath.Ext(link))
embedStr += `
@@ -103,7 +103,7 @@ func RouteWebPages(route *gin.RouterGroup) {
})
`
}
embedStr += "}"
embedStr += "}\n"
ff.WriteString(embedStr)
}

View File

@@ -96,4 +96,4 @@ func RouteWebPages(route *gin.RouterGroup) {
route.GET("/static/js/runtime-main.33603a80.js.map", func(c *gin.Context) {
c.Data(200, "application/json", Staticjsruntimemain33603a80jsmap)
})
}
}