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

Method Open

loaders/embedfs/loader.go:27–29  ·  view source on GitHub ↗

Open implements Loader.Open() on top of an embed.FS.

(name string)

Source from the content-addressed store, hash-verified

25
26// Open implements Loader.Open() on top of an embed.FS.
27func (l *embedFileSystemLoader) Open(name string) (io.ReadCloser, error) {
28 return l.fs.Open(path.Join(l.dir, path.Clean(filepath.ToSlash(name))))
29}
30
31// Exists implements Loader.Exists() on top of an embed.FS by trying to open the file.
32func (l *embedFileSystemLoader) Exists(name string) bool {

Callers

nothing calls this directly

Calls 1

OpenMethod · 0.65

Tested by

no test coverage detected