- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 184 for funcMap (0.13 sec)
-
src/text/template/funcs.go
} // createValueFuncs turns a FuncMap into a map[string]reflect.Value func createValueFuncs(funcMap FuncMap) map[string]reflect.Value { m := make(map[string]reflect.Value) addValueFuncs(m, funcMap) return m } // addValueFuncs adds to values the functions in funcs, converting them to reflect.Values. func addValueFuncs(out map[string]reflect.Value, in FuncMap) { for name, fn := range in { if !goodName(name) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 20.9K bytes - Viewed (0) -
src/sort/gen_sort_variants.go
// `j` of the value `name`. Funcs template.FuncMap } var ( traditionalVariants = []Variant{ Variant{ Name: "interface", Path: "zsortinterface.go", Package: "sort", Imports: "", FuncSuffix: "", TypeParam: "", ExtraParam: "", ExtraArg: "", DataType: "Interface", Funcs: template.FuncMap{ "Less": func(name, i, j string) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 19.6K bytes - Viewed (0) -
src/html/template/template.go
// type. However, it is legal to overwrite elements of the map. The return // value is the template, so calls can be chained. func (t *Template) Funcs(funcMap FuncMap) *Template { t.text.Funcs(template.FuncMap(funcMap)) return t } // Delims sets the action delimiters to the specified strings, to be used in // subsequent calls to [Template.Parse], [ParseFiles], or [ParseGlob]. Nested template
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 21:00:46 UTC 2024 - 17K bytes - Viewed (0) -
src/html/template/escape.go
return s } } for i, arg := range args { args[i] = indirectToStringerOrError(arg) } return fmt.Sprint(args...) } // funcMap maps command names to functions that render their inputs safe. var funcMap = template.FuncMap{ "_html_template_attrescaper": attrEscaper, "_html_template_commentescaper": commentEscaper, "_html_template_cssescaper": cssEscaper,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 02 15:18:39 UTC 2023 - 32.4K bytes - Viewed (0) -
pkg/kube/inject/template.go
"istio.io/istio/pkg/config/mesh" "istio.io/istio/pkg/log" "istio.io/istio/pkg/util/protomarshal" ) var InjectionFuncmap = createInjectionFuncmap() func createInjectionFuncmap() template.FuncMap { return template.FuncMap{ "formatDuration": formatDuration, "isset": isset, "excludeInboundPort": excludeInboundPort, "includeInboundPorts": includeInboundPorts, "kubevirtInterfaces": kubevirtInterfaces,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 16 02:12:03 UTC 2023 - 9.9K bytes - Viewed (0) -
api/go1.19.txt
pkg hash/maphash, func Bytes(Seed, []uint8) uint64 #42710 pkg hash/maphash, func String(Seed, string) uint64 #42710 pkg html/template, method (*Template) Funcs(template.FuncMap) *Template #46121 pkg html/template, type FuncMap = template.FuncMap #46121 pkg net/http, method (*MaxBytesError) Error() string #30715 pkg net/http, type MaxBytesError struct #30715 pkg net/http, type MaxBytesError struct, Limit int64 #30715
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 02 16:29:41 UTC 2022 - 17.9K bytes - Viewed (0) -
src/text/template/parse/parse.go
} t.backup() return nil } // hasFunction reports if a function name exists in the Tree's maps. func (t *Tree) hasFunction(name string) bool { for _, funcMap := range t.funcs { if funcMap == nil { continue } if funcMap[name] != nil { return true } } return false } // popVars trims the variable list to the specified length func (t *Tree) popVars(n int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 21.3K bytes - Viewed (0) -
src/cmd/trace/goroutines.go
case "Syscall execution time": color = "#7b3294" case "Execution time": color = "#d7191c" } return color } var templGoroutine = template.Must(template.New("").Funcs(template.FuncMap{ "percent": func(dividend, divisor time.Duration) template.HTML { if divisor == 0 { return "" } return template.HTML(fmt.Sprintf("(%.1f%%)", float64(dividend)/float64(divisor)*100)) },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 10.9K bytes - Viewed (0) -
src/cmd/trace/tasks.go
http.Error(w, fmt.Sprintf("failed to execute template: %v", err), http.StatusInternalServerError) return } } } var templUserTaskType = template.Must(template.New("userTask").Funcs(template.FuncMap{ "elapsed": elapsed, "asMillisecond": asMillisecond, "trimSpace": strings.TrimSpace, }).Parse(` <!DOCTYPE html> <title>Tasks: {{.Name}}</title> <style>` + traceviewer.CommonStyle + ` body {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 11.8K bytes - Viewed (0) -
pkg/kube/inject/inject.go
if err := json.Unmarshal(statusBytes, &iStatus); err != nil { return nil } return &iStatus } func parseDryTemplate(tmplStr string, funcMap map[string]any) (*template.Template, error) { temp := template.New("inject") t, err := temp.Funcs(sprig.TxtFuncMap()).Funcs(funcMap).Parse(tmplStr) if err != nil { log.Infof("Failed to parse template: %v %v\n", err, tmplStr) return nil, err } return t, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 20:35:11 UTC 2024 - 28.8K bytes - Viewed (0)