Skip to content
callcount

package

strings

standard library

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

Docs on pkg.go.dev ↗

prod calls
362,325
non-test, non-generated
all calls
563,739
total callsites
functions
55
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,629
TrimSpace 38,408
Builder.WriteString 33,550
HasPrefix 29,075
Contains 23,949
Split 19,942
ToLower 19,513
Trim 11,724
Builder.String 9,836
HasSuffix 9,536
TrimPrefix 9,005
ReplaceAll 7,535
TrimSuffix 6,017
EqualFold 5,647
Replace 5,601
Index 4,239
SplitN 4,059
ToUpper 3,941
Builder.WriteByte 3,453
Cut 2,958
Repeat 2,790
NewReader 2,614
TrimRight 2,338
Fields 2,308
Builder.WriteRune 1,864
Builder.Grow 1,828
LastIndex 1,679
IndexByte 1,609
SplitSeq 1,297
Compare 1,294
CutPrefix 1,162
Count 1,101
ContainsAny 1,017
TrimLeft 981
Replacer.Replace 976
NewReplacer 902
Builder.Len 854
ContainsRune 715
Builder.Reset 590
Title 416
Map 406
LastIndexByte 400
IndexRune 330
Builder.Write 318
FieldsFunc 306
IndexAny 263
CutSuffix 236
TrimRightFunc 201
TrimLeftFunc 200
IndexFunc 189
Clone 163
SplitAfter 115
FieldsSeq 93
TrimFunc 86
ToValidUTF8 67