MCPcopy Create free account
hub / github.com/CloudyKit/jet / Open

Method Open

loader.go:81–83  ·  view source on GitHub ↗

Open returns the result of `os.Open()` on the file located using the same logic as Exists().

(templatePath string)

Source from the content-addressed store, hash-verified

79
80// Open returns the result of `os.Open()` on the file located using the same logic as Exists().
81func (l *OSFileSystemLoader) Open(templatePath string) (io.ReadCloser, error) {
82 return os.Open(filepath.Join(l.dir, filepath.FromSlash(templatePath)))
83}
84
85// InMemLoader is a simple in-memory loader storing template contents in a simple map.
86// InMemLoader normalizes paths passed to its methods by converting any input path to a slash-delimited path,

Callers

nothing calls this directly

Calls 1

OpenMethod · 0.65

Tested by

no test coverage detected