net/http.DetectContentType
standard libraryThe 2552nd most-called standard-library function by production calls. Called 265 times across 108 modules; 241 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (238 → 241)
- prod calls
- 241
- non-test, non-generated
- all calls
- 265
- total callsites
- modules
- 108
- distinct callers
- in loop
- 5%
- of prod calls
- in tests
- 5%
- 14 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 DetectContentType from notable Go projects. Open one on the map to see what else it hammers.
- Gitea 4 2%
- Docker 3 1%
- Go (golang.org/x) 3 1%
- Nomad 3 1%
- Dgraph 2 <1%
where it's called
Callsites in the wild
12 representative callsites of 265, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
- in loop
- in loop
- in loop
- in loop
-
seaweedfs/seaweedfs @v0.0.0-20260921075935-e2608edda4f9
in loop - in loop
- in loop
- in loop
-
top callers
The modules that reach for it
The modules that call DetectContentType most in this snapshot.
- github.com/aliyun/aliyun-oss-go-sdk3513%
- github.com/chenhg5/cc-connect114%
- github.com/infiniflow/ragflow104%
- github.com/Tencent/WeKnora83%
- github.com/seaweedfs/seaweedfs83%
siblings
More from net/http
The other most-called functions in this package. See all →