Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ExecuteTemplate (0.45 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/webui.go

    	profile := getFromLegend(legend, "Type: ", "unknown")
    	data.Title = file + " " + profile
    	data.Errors = errList
    	data.Total = rpt.Total()
    	data.Legend = legend
    	return getHTMLTemplates().ExecuteTemplate(dst, tmpl, data)
    }
    
    // render responds with html generated by passing data to the named template.
    func (ui *webInterface) render(w http.ResponseWriter, req *http.Request, tmpl string,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. src/text/template/exec.go

    			panic(e)
    		case writeError:
    			*errp = err.Err // Strip the wrapper.
    		case ExecError:
    			*errp = err // Keep the wrapper.
    		default:
    			panic(e)
    		}
    	}
    }
    
    // ExecuteTemplate applies the template associated with t that has the given name
    // to the specified data object and writes the output to wr.
    // If an error occurs executing the template or writing its output,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. pilot/pkg/xds/bench_test.go

    		configName = input.Name
    	}
    	tmpl := template.Must(template.New("").Funcs(sprig.TxtFuncMap()).ParseFiles(path.Join("testdata", "benchmarks", configName+".yaml")))
    	var buf bytes.Buffer
    	if err := tmpl.ExecuteTemplate(&buf, configName+".yaml", input); err != nil {
    		t.Fatalf("failed to execute template: %v", err)
    	}
    	extra := path.Join("testdata", "benchmarks", configName+".extra.yaml")
    	inputYAML := buf.String()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 22 18:13:40 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top