MCPcopy
hub / github.com/AlistGo/alist / convert

Function convert

cmd/lang.go:35–39  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

33}
34
35func convert(s string) string {
36 ss := strings.Split(s, "_")
37 ans := strings.Join(ss, " ")
38 return firstUpper(ans)
39}
40
41func writeFile(name string, data interface{}) {
42 f, err := os.Open(fmt.Sprintf("../alist-web/src/lang/en/%s.json", name))

Callers 4

SliceConvertFunction · 0.85
MustSliceConvertFunction · 0.85
generateDriversJsonFunction · 0.85
generateSettingsJsonFunction · 0.85

Calls 1

firstUpperFunction · 0.85

Tested by

no test coverage detected