Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for execFuncs (0.12 sec)

  1. src/text/template/funcs.go

    func findFunction(name string, tmpl *Template) (v reflect.Value, isBuiltin, ok bool) {
    	if tmpl != nil && tmpl.common != nil {
    		tmpl.muFuncs.RLock()
    		defer tmpl.muFuncs.RUnlock()
    		if fn := tmpl.execFuncs[name]; fn.IsValid() {
    			return fn, false, true
    		}
    	}
    	if fn := builtinFuncs()[name]; fn.IsValid() {
    		return fn, true, true
    	}
    	return reflect.Value{}, false, false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top