mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 05:26:09 +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(".map", "application/json")
|
||||||
mime.AddExtensionType(".webmanifest", "application/manifest+json")
|
mime.AddExtensionType(".webmanifest", "application/manifest+json")
|
||||||
// sort fmap
|
// sort fmap
|
||||||
keys := make([]string, 0, len(fmap))
|
keys := make([]string, 0, len(fmap))
|
||||||
for key := range fmap {
|
for key := range fmap {
|
||||||
keys = append(keys, key)
|
keys = append(keys, key)
|
||||||
}
|
}
|
||||||
sort.Strings(keys)
|
sort.Strings(keys)
|
||||||
for _, link := range keys {
|
for _, link := range keys {
|
||||||
fmime := mime.TypeByExtension(filepath.Ext(link))
|
fmime := mime.TypeByExtension(filepath.Ext(link))
|
||||||
embedStr += `
|
embedStr += `
|
||||||
@@ -103,7 +103,7 @@ func RouteWebPages(route *gin.RouterGroup) {
|
|||||||
})
|
})
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
embedStr += "}"
|
embedStr += "}\n"
|
||||||
|
|
||||||
ff.WriteString(embedStr)
|
ff.WriteString(embedStr)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user