mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-18 21:16:10 +05:00
gofmt -l -w .
This commit is contained in:
12
gen_web.go
12
gen_web.go
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user