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

Function NewInMemLoader

loader.go:98–102  ·  view source on GitHub ↗

NewInMemLoader return a new InMemLoader.

()

Source from the content-addressed store, hash-verified

96
97// NewInMemLoader return a new InMemLoader.
98func NewInMemLoader() *InMemLoader {
99 return &InMemLoader{
100 files: map[string][]byte{},
101 }
102}
103
104func (l *InMemLoader) normalize(templatePath string) string {
105 templatePath = filepath.ToSlash(templatePath)

Callers 11

TestExecuteConcurrencyFunction · 0.85
ExampleRangerFunction · 0.85
TestSetSetExtensionsFunction · 0.85
TestParseDoesNotCacheFunction · 0.85
eval_test.goFile · 0.85
TestEvalAutoescapeFunction · 0.85
TestDivisionByZeroFunction · 0.85
TestRecursiveIncludeFunction · 0.85
BenchmarkFieldAccessFunction · 0.85

Calls

no outgoing calls

Tested by 10

TestExecuteConcurrencyFunction · 0.68
ExampleRangerFunction · 0.68
TestSetSetExtensionsFunction · 0.68
TestParseDoesNotCacheFunction · 0.68
TestEvalAutoescapeFunction · 0.68
TestDivisionByZeroFunction · 0.68
TestRecursiveIncludeFunction · 0.68
BenchmarkFieldAccessFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…