Skip to content
callcount

package

strings

standard library

54 standard-library functions from strings, ranked by how often they are called outside tests and generated code.

Docs on pkg.go.dev ↗

prod calls
360,176
non-test, non-generated
all calls
563,725
total callsites
functions
54
ranked in this snapshot
origin
std
standard-library

members

Functions in strings

Ranked by production calls. The bar scales each function against the busiest in this package.

Function Prod calls
Join 82,461
TrimSpace 37,673
Builder.WriteString 33,485
HasPrefix 28,947
Contains 23,898
Split 19,952
ToLower 19,404
Trim 11,685
Builder.String 9,757
HasSuffix 9,499
TrimPrefix 8,956
ReplaceAll 7,490
TrimSuffix 5,974
Replace 5,604
EqualFold 5,578
Index 4,225
SplitN 4,058
ToUpper 3,926
Builder.WriteByte 3,396
Cut 2,902
Repeat 2,782
NewReader 2,598
TrimRight 2,303
Fields 2,291
Builder.WriteRune 1,858
Builder.Grow 1,823
LastIndex 1,667
IndexByte 1,599
Compare 1,287
SplitSeq 1,234
CutPrefix 1,126
Count 1,099
ContainsAny 998
TrimLeft 978
Replacer.Replace 962
NewReplacer 892
Builder.Len 844
ContainsRune 707
Builder.Reset 584
Title 416
Map 399
LastIndexByte 385
IndexRune 330
Builder.Write 315
FieldsFunc 305
IndexAny 260
CutSuffix 233
TrimLeftFunc 198
TrimRightFunc 196
IndexFunc 186
Clone 159
SplitAfter 115
FieldsSeq 91
TrimFunc 86