(ext string)
| 126 | } |
| 127 | |
| 128 | func getFormat(ext string) string { |
| 129 | for r, f := range FormatByExtension { |
| 130 | m, _ := regexp.MatchString(r, ext) |
| 131 | if m { |
| 132 | return f[1] |
| 133 | } |
| 134 | } |
| 135 | return "" |
| 136 | } |
| 137 | |
| 138 | func GetNormedExt(ext string) string { |
| 139 | for r, f := range FormatByExtension { |
no outgoing calls
no test coverage detected
searching dependent graphs…