time.Duration.Truncate
standard libraryThe 2984th most-called standard-library method by production calls. Called 228 times across 76 modules; 199 of those run outside tests and generated code.
- prod calls
- 199
- non-test, non-generated
- all calls
- 228
- total callsites
- modules
- 76
- distinct callers
- in loop
- 26%
- of prod calls
- in tests
- 13%
- 29 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.
who calls this
Notable callers
Production calls into Duration.Truncate from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 15 8%
- Terraform 10 5%
- Cilium 9 5%
- CockroachDB 6 3%
- NATS 5 3%
where it's called
Callsites in the wild
12 representative callsites of 228, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
-
ipfs/kubo @v0.43.0
in loop - in loop
- in loop
-
sagernet/tailscale @v1.102.1
in loop -
seaweedfs/seaweedfs @v0.0.0-20260805044234-3c549b33ab8d
in loop - in loop
- in loop
-
kubernetes/kubernetes @master
staging/src/k8s.io/dynamic-resource-allocation/kubeletplugin/health.go:167 ↗
in loop -
tailscale/tailscale @v1.102.2
in loop
top callers
The modules that reach for it
The modules that call Duration.Truncate most in this snapshot.
- github.com/ClickHouse/clickhouse-go/v2136%
- github.com/seaweedfs/seaweedfs136%
- github.com/steveyegge/gastown115%
- github.com/cilium/cilium104%
- github.com/hashicorp/terraform104%
siblings
More from time
The other most-called members in this package. See all →