code: func funcMap(appPkg string, actionImpls map[string]string) template.FuncMap {
  	return template.FuncMap{
  		"tempvar":   tempvar,
  		"okResp":    okResp,
  		"targetPkg": func() string { return appPkg },
  		"actionBody": func(name string) string {
  			body, ok := actionImpls[name]
  			if !ok {
  				return defaultActionBody
  			}
  			return body
  		},
  		"printResp": func(name string) bool {
  			_, ok := actionImpls[name]
  			return !ok
  		},
  	}
  }
docs: // funcMap creates the funcMap used to render the controller code.