text/template.Template.Execute
standard libraryThe 636th most-called standard-library method by production calls. Called 1,553 times across 350 modules; 1,125 of those run outside tests and generated code.
- prod calls
- 1,125
- non-test, non-generated
- all calls
- 1,553
- total callsites
- modules
- 350
- distinct callers
- in loop
- 10%
- of prod calls
- in tests
- 28%
- 428 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Concrete method100%A method on a value whose type is known exactly.
- Embedded method<1%Reached through an embedded type.
estimate
Estimated relative cost
Roughly 0.02× the estimated relative cost of fmt.Sprintf . Benchmarked at 434.2 ns/op × 1,125 production calls, normalized so fmt.Sprintf = 1.0.
This is not dollars and not a verdict. Per-op time depends heavily on inputs (argument sizes, contention, patterns), the benchmark ran on a single machine (darwin/arm64 (Apple Silicon), go1.26.0), and static call counts are not runtime frequency. How this is estimated →
who calls this
Notable callers
Production calls into Template.Execute from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 109 10%
- CockroachDB 47 4%
- containerd 38 3%
- Docker 32 3%
- Grafana 26 2%
where it's called
Callsites in the wild
12 representative callsites of 1,553, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop -
hashicorp/consul @v1.22.7
internal/resource/protoc-gen-resource-types/internal/generate/generate.go:122 ↗
in loop - in loop
- in loop
-
entgo.io/ent @v0.14.6
cmd/internal/base/base.go:293
in loop - in loop
-
GoogleCloudPlatform/terraformer @v0.0.0-20260316201050-1807affdde9e
in loop - in loop
-
XTLS/Xray-core @v1.260327.0
in loop - in loop
top callers
The modules that reach for it
The modules that call Template.Execute most in this snapshot.
- github.com/go-swagger/go-swagger27318%
- github.com/cockroachdb/cockroach473%
- k8s.io/minikube312%
- github.com/kubernetes/minikube282%
- github.com/Melkeydev/go-blueprint262%
siblings
More from text/template
The other most-called members in this package. See all →