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

Method normalize

loader.go:104–107  ·  view source on GitHub ↗
(templatePath string)

Source from the content-addressed store, hash-verified

102}
103
104func (l *InMemLoader) normalize(templatePath string) string {
105 templatePath = filepath.ToSlash(templatePath)
106 return path.Join("/", templatePath)
107}
108
109// Open returns a template's contents, or an error if no template was added under this path using Set().
110func (l *InMemLoader) Open(templatePath string) (io.ReadCloser, error) {

Callers 4

OpenMethod · 0.95
ExistsMethod · 0.95
SetMethod · 0.95
DeleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected