github.com/charmbracelet/x/ansi.StringWidth
third-partyThe 5722nd most-called third-party function by production calls. Called 126 times across 15 modules; 103 of those run outside tests and generated code.
All of github.com/charmbracelet/x/ansi → Docs on pkg.go.dev ↗
- prod calls
- 103
- non-test, non-generated
- all calls
- 126
- total callsites
- modules
- 15
- distinct callers
- in loop
- 51%
- of prod calls
- in tests
- 18%
- 23 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 126, prioritizing in-loop and non-test usage. We link to source, never display it.
-
bubbles/v2 @v2.1.1
viewport/viewport.go:284
in loop -
bubbletea/v2 @v2.0.8
cursed_renderer.go:729
in loop -
glamour/v2 @v2.0.1
ansi/margin.go:100
in loop -
lipgloss/v2 @v2.0.5
size.go:17
in loop - in loop
- in loop
- in loop
-
charmbracelet/gum @v0.17.0
in loop -
charmbracelet/lipgloss @v1.1.0
in loop - in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call StringWidth most in this snapshot.
- github.com/yorukot/superfile2923%
- github.com/charmbracelet/crush2721%
- github.com/esengine/DeepSeek-Reasonix2318%
- charm.land/lipgloss/v2119%
- github.com/charmbracelet/lipgloss119%
siblings
More from github.com/charmbracelet/x/ansi
The other most-called functions in this package. See all →