(fileName string)
| 39 | } |
| 40 | |
| 41 | func 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 | |
| 51 | func serveStaticPage( |
| 52 | dataName string, |
no outgoing calls
no test coverage detected