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

Function validateOutputTagValue

parser/parser.go:852–856  ·  view source on GitHub ↗
(stmt []byte)

Source from the content-addressed store, hash-verified

850}
851
852func validateOutputTagValue(stmt []byte) error {
853 exprStr := string(stmt)
854 _, err := goparser.ParseExpr(exprStr)
855 return err
856}
857
858func validateForStmt(stmt []byte) error {
859 exprStr := fmt.Sprintf("func () { for %s {} }", stmt)

Callers 1

parseOutputTagMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…