Register registers a resource loader for the given file format.
(ext string, loader FileLoader)
| 69 | |
| 70 | // Register registers a resource loader for the given file format. |
| 71 | func (formats *Formats) Register(ext string, loader FileLoader) { |
| 72 | formats.formats[ext] = loader |
| 73 | } |
| 74 | |
| 75 | // getExt returns the extension of the file(including extensions with `.` in them) from the given url. |
| 76 | func getExt(path string) string { |
no outgoing calls