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

Method DefWrite

parser/functype.go:149–151  ·  view source on GitHub ↗
(dst string)

Source from the content-addressed store, hash-verified

147}
148
149func (f *funcType) DefWrite(dst string) string {
150 return fmt.Sprintf("%s%s%s(%s qtio%s.Writer%s)", f.defPrefix, f.prefixWrite(), f.name, dst, mangleSuffix, f.args)
151}
152
153func (f *funcType) CallWrite(dst string) string {
154 return fmt.Sprintf("%s%s%s(%s%s)", f.callPrefix, f.prefixWrite(), f.name, dst, f.argNames)

Callers 3

parseInterfaceMethod · 0.80
emitFuncEndMethod · 0.80
testParseFuncDefSuccessFunction · 0.80

Calls 1

prefixWriteMethod · 0.95

Tested by 1

testParseFuncDefSuccessFunction · 0.64