MCPcopy Create free account
hub / github.com/kataras/iris / Open

Method Open

view/jet.go:217–220  ·  view source on GitHub ↗

Open opens a file from file system.

(name string)

Source from the content-addressed store, hash-verified

215
216// Open opens a file from file system.
217func (l *jetLoader) Open(name string) (io.ReadCloser, error) {
218 name = strings.TrimPrefix(name, "/")
219 return l.fs.Open(name)
220}
221
222// Exists checks if the template name exists by walking the list of template paths.
223func (l *jetLoader) Exists(name string) bool {

Callers 2

ExistsMethod · 0.45
getRootDirNameFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected