github.com/charmbracelet/x/ansi.StringWidth
third-partyThe 4179th most-called third-party function by production calls. Called 184 times across 19 modules; 144 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (142 → 144)
All of github.com/charmbracelet/x/ansi → Docs on pkg.go.dev ↗
- prod calls
- 144
- non-test, non-generated
- all calls
- 184
- total callsites
- modules
- 19
- distinct callers
- in loop
- 41%
- of prod calls
- in tests
- 22%
- 40 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.
where it's called
Callsites in the wild
12 representative callsites of 184, prioritizing in-loop and non-test usage. We link to source, never display it.
-
bubbles/v2 @v2.2.1
textarea/selection.go:46
in loop -
bubbletea/v2 @v2.0.9
cursed_renderer.go:779
in loop -
glamour/v2 @v2.0.1
ansi/margin.go:100
in loop -
lipgloss/v2 @v2.0.6
size.go:17
in loop - in loop
- in loop
- in loop
- in loop
- in loop
-
charmbracelet/gum @v0.17.0
in loop -
charmbracelet/lipgloss @v1.1.0
in loop -
charmbracelet/ultraviolet @v0.0.0-20260910203606-6c9e17dc7a16
in loop
top callers
The modules that reach for it
The modules that call StringWidth most in this snapshot.
- github.com/charmbracelet/crush3217%
- github.com/yorukot/superfile2916%
- github.com/esengine/DeepSeek-Reasonix2815%
- github.com/BishopFox/sliver2011%
- github.com/bishopfox/sliver2011%
siblings
More from github.com/charmbracelet/x/ansi
The other most-called functions in this package. See all →