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

Method expectString

parse.go:237–244  ·  view source on GitHub ↗
(context string)

Source from the content-addressed store, hash-verified

235}
236
237func (t *Template) expectString(context string) string {
238 token := t.expectOneOf(itemString, itemRawString, context, "string literal")
239 s, err := unquote(token.val)
240 if err != nil {
241 t.error(err)
242 }
243 return s
244}
245
246// parse is the top-level parser for a template, essentially the same
247// It runs to EOF.

Callers 1

parseTemplateMethod · 0.95

Calls 3

expectOneOfMethod · 0.95
errorMethod · 0.95
unquoteFunction · 0.85

Tested by

no test coverage detected