mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 19:22:57 +00:00
gofmt simplify
This commit is contained in:
parent
aba6926b24
commit
c14c815a19
@ -208,7 +208,7 @@ func get(w http.ResponseWriter, r *http.Request, c *config.Config) (int, error)
|
|||||||
}),
|
}),
|
||||||
Root: "./",
|
Root: "./",
|
||||||
Configs: []browse.Config{
|
Configs: []browse.Config{
|
||||||
browse.Config{
|
{
|
||||||
PathScope: "/",
|
PathScope: "/",
|
||||||
Variables: c,
|
Variables: c,
|
||||||
Template: tpl,
|
Template: tpl,
|
||||||
|
@ -184,7 +184,7 @@ func SplitCapitalize(name string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
name = strings.ToLower(name[:len(name)-1])
|
name = strings.ToLower(name[:len(name)-1])
|
||||||
name = strings.ToUpper(string(name[0])) + name[1:len(name)]
|
name = strings.ToUpper(string(name[0])) + name[1:]
|
||||||
|
|
||||||
return name
|
return name
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user