MCPcopy
hub / github.com/gin-gonic/gin / SetFuncMap

Method SetFuncMap

gin.go:321–323  ·  view source on GitHub ↗

SetFuncMap sets the FuncMap used for template.FuncMap.

(funcMap template.FuncMap)

Source from the content-addressed store, hash-verified

319
320// SetFuncMap sets the FuncMap used for template.FuncMap.
321func (engine *Engine) SetFuncMap(funcMap template.FuncMap) {
322 engine.FuncMap = funcMap
323}
324
325// NoRoute adds handlers for NoRoute. It returns a 404 code by default.
326func (engine *Engine) NoRoute(handlers ...HandlerFunc) {

Callers 1

setupHTMLFilesFunction · 0.95

Calls

no outgoing calls

Tested by 1

setupHTMLFilesFunction · 0.76