encoding/json.NewEncoder
standard libraryThe 286th most-called standard-library function by production calls. Called 5,488 times across 528 modules; 3,238 of those run outside tests and generated code.
- prod calls
- 3,238
- non-test, non-generated
- all calls
- 5,488
- total callsites
- modules
- 528
- distinct callers
- in loop
- 2%
- of prod calls
- in tests
- 40%
- 2,219 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 →
- Package function100%A direct call to an exported package function, resolved by type.
who calls this
Notable callers
Production calls into NewEncoder from notable Go projects. Open one on the map to see what else it hammers.
- Tailscale 131 4%
- Kubernetes 102 3%
- Docker 57 2%
- Grafana 57 2%
- MinIO 43 1%
where it's called
Callsites in the wild
12 representative callsites of 5,488, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
etcd-io/etcd @v2.3.8+incompatible
in loop - in loop
-
a-h/templ @v0.3.1020
in loop - in loop
- in loop
-
coreos/etcd @v2.3.8+incompatible
in loop - in loop
- in loop
- in loop
- in loop
-
getsentry/sentry-go @v0.48.0
in loop
top callers
The modules that reach for it
The modules that call NewEncoder most in this snapshot.
- github.com/infiniflow/ragflow1883%
- github.com/sipeed/picoclaw1763%
- github.com/gastownhall/gastown1693%
- github.com/steveyegge/gastown1693%
- github.com/gastownhall/beads1523%
siblings
More from encoding/json
The other most-called functions in this package. See all →