NewOSFileSystemLoader returns an initialized OSFileSystemLoader.
(dirPath string)
| 61 | |
| 62 | // NewOSFileSystemLoader returns an initialized OSFileSystemLoader. |
| 63 | func NewOSFileSystemLoader(dirPath string) *OSFileSystemLoader { |
| 64 | return &OSFileSystemLoader{ |
| 65 | dir: filepath.FromSlash(dirPath), |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | // Exists returns true if a file is found under the template path after converting it to a file path |
| 70 | // using the OS's path seperator and joining it with the loader's directory path. |
no outgoing calls
searching dependent graphs…