(path string)
| 48 | } |
| 49 | |
| 50 | func SourceExt(path string) string { |
| 51 | ext := stdpath.Ext(path) |
| 52 | if len(ext) > 0 && ext[0] == '.' { |
| 53 | ext = ext[1:] |
| 54 | } |
| 55 | return ext |
| 56 | } |
| 57 | |
| 58 | func EncodePath(path string, all ...bool) string { |
| 59 | seg := strings.Split(path, "/") |
no outgoing calls
no test coverage detected