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

Method DefString

parser/functype.go:157–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157func (f *funcType) DefString() string {
158 args := f.args
159 if len(args) > 0 {
160 // skip the first ', '
161 args = args[2:]
162 }
163 return fmt.Sprintf("%s%s(%s) string", f.defPrefix, f.name, args)
164}
165
166func (f *funcType) prefixWrite() string {
167 s := "write"

Callers 2

emitFuncEndMethod · 0.80
testParseFuncDefSuccessFunction · 0.80

Calls

no outgoing calls

Tested by 1

testParseFuncDefSuccessFunction · 0.64