MCPcopy Create free account
hub / github.com/abiosoft/mold / invalidFuncType

Function invalidFuncType

process.go:117–126  ·  view source on GitHub ↗
(typ templateType, funcName string)

Source from the content-addressed store, hash-verified

115}
116
117func invalidFuncType(typ templateType, funcName string) bool {
118 switch typ {
119 case viewType:
120 return funcName == renderFunc.String()
121 case partialType:
122 return funcName == renderFunc.String() || funcName == partialFunc.String()
123 }
124
125 return false
126}
127
128func getActionArgs(cmd *parse.CommandNode) (fn, file string, field *parse.FieldNode) {
129 if len(cmd.Args) > 0 {

Callers 1

processActionNodeFunction · 0.85

Calls 1

StringMethod · 0.80

Tested by

no test coverage detected