MCPcopy
hub / github.com/nirui/sshwifty / staticFileExt

Function staticFileExt

application/controller/static.go:41–49  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

39}
40
41func staticFileExt(fileName string) string {
42 extIdx := strings.LastIndex(fileName, ".")
43
44 if extIdx < 0 {
45 return ""
46 }
47
48 return strings.ToLower(fileName[extIdx:])
49}
50
51func serveStaticPage(
52 dataName string,

Callers 2

serveStaticPageFunction · 0.85
serveStaticDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected