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

Method Printf

parser/parser.go:811–823  ·  view source on GitHub ↗
(format string, args ...interface{})

Source from the content-addressed store, hash-verified

809}
810
811func (p *parser) Printf(format string, args ...interface{}) {
812 if p.skipOutputDepth > 0 {
813 return
814 }
815 w := p.w
816 if !p.skipLineComments {
817 // line comments are required to start at the beginning of the line
818 p.s.WriteLineComment(w)
819 }
820 fmt.Fprintf(w, "%s", p.prefix)
821 fmt.Fprintf(w, format, args...)
822 fmt.Fprintf(w, "\n")
823}
824
825func skipTagContents(s *scanner) error {
826 tagName := string(s.Token().Value)

Callers 15

emitPackageNameMethod · 0.95
emitImportsUseMethod · 0.95
parseForMethod · 0.95
parseDefaultMethod · 0.95
parseCaseMethod · 0.95
parseSwitchMethod · 0.95
parseIfMethod · 0.95
skipAfterTagMethod · 0.95
parseInterfaceMethod · 0.95
parseImportMethod · 0.95
parseTemplateCodeMethod · 0.95
parseFuncCodeMethod · 0.95

Calls 1

WriteLineCommentMethod · 0.80

Tested by

no test coverage detected