MCPcopy
hub / github.com/valyala/quicktemplate / Parse

Function Parse

parser/parser.go:32–34  ·  view source on GitHub ↗

Parse parses the contents of the supplied reader, writing generated code to the supplied writer. Uses filename as the source file for line comments, and pkg as the Go package name.

(w io.Writer, r io.Reader, filename, pkg string)

Source from the content-addressed store, hash-verified

30// the supplied writer. Uses filename as the source file for line comments, and
31// pkg as the Go package name.
32func Parse(w io.Writer, r io.Reader, filename, pkg string) error {
33 return parse(w, r, filename, pkg, false)
34}
35
36// ParseNoLineComments is the same as Parse, but does not write line comments.
37func ParseNoLineComments(w io.Writer, r io.Reader, filename, pkg string) error {

Callers 3

testParseFailureFunction · 0.85
testParseSuccessFunction · 0.85
TestParseFileFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by 3

testParseFailureFunction · 0.68
testParseSuccessFunction · 0.68
TestParseFileFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…