Skip to content
callcount

interfaces

The interfaces Go dispatches through most

An interface call doesn’t land on one function. A write to an io.Writer might hit a file, a buffer, or a socket, so these calls sit outside the optimization ranking and get their own lens here. This is where dispatch concentrates: 749,685 calls across 855 methods, with 43% of it flowing through the top 5.

155k 21% of dispatch
51 modules dispatch through it
61k 8% of dispatch
41 modules dispatch through it
59k 8% of dispatch
975 modules dispatch through it

every shape, by dispatch

Interface method Dispatch calls
github.com/onsi/gomega/types. Assertion.To
154,901
github.com/onsi/gomega/types. Assertion.ToNot
61,299
io. Closer.Close
58,696
net/http. ResponseWriter.WriteHeader
27,811
net/http. ResponseWriter.Header
21,804
context. Context.Done
21,235
context. Context.Err
15,945
io. Writer.Write
14,347
github.com/onsi/gomega/types. Assertion.NotTo
12,532
net/http. ResponseWriter.Write
12,259
github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter. Converter.CovertStringToInterface
8,923
github.com/onsi/gomega/types. Assertion.Should
8,637
net. Conn.Close
8,552
reflect. Type.Kind
6,818
io/fs. DirEntry.Name
6,804
context. Context.Value
6,785
github.com/go-kit/log. Logger.Log
6,539
reflect. Type.Elem
6,354
net. Addr.String
6,230
net/http. Handler.ServeHTTP
5,690
github.com/onsi/gomega/types. AsyncAssertion.Should
5,431
net. Listener.Addr
4,977
io/fs. FileInfo.IsDir
4,902
reflect. Type.PkgPath
4,808
io/fs. FileInfo.Mode
4,613
github.com/jdcloud-api/jdcloud-sdk-go/core. Logger.Log
4,338
hash. Hash.Sum
3,873
testing. TB.Helper
3,732
net. Listener.Close
3,659
io/fs. FileInfo.Size
3,458
github.com/prometheus/client_golang/prometheus. Counter.Inc
3,226
testing. TB.Fatalf
3,124
io. Reader.Read
2,952
go.opentelemetry.io/otel/trace. Span.End
2,777
net. Conn.Write
2,776
io/fs. FileInfo.Name
2,440
io/fs. DirEntry.IsDir
2,428
reflect. Type.Field
2,346
github.com/aws/aws-sdk-go/aws/awserr. Error.Code
2,320
testing. TB.Fatal
2,269
github.com/hashicorp/go-hclog. Logger.Error
2,145
reflect. Type.String
1,927
io/fs. FileInfo.ModTime
1,913
github.com/prometheus/client_golang/prometheus. Gauge.Set
1,836
fmt. Stringer.String
1,759
github.com/kyverno/kyverno/pkg/metrics. Recorder.RecordWithContext
1,724
github.com/hashicorp/go-hclog. Logger.Debug
1,723
net. Listener.Accept
1,684
github.com/onsi/gomega/types. AsyncAssertion.WithTimeout
1,607
gonum.org/v1/gonum/graph. Node.ID
1,606
github.com/onsi/gomega/types. Assertion.ShouldNot
1,562
testing. TB.Errorf
1,513
github.com/sirupsen/logrus. FieldLogger.WithField
1,489
github.com/prometheus/client_golang/prometheus. Counter.Add
1,411
github.com/onsi/gomega/types. Gomega.Expect
1,397
reflect. Type.NumField
1,377
net. Conn.RemoteAddr
1,375
net. Conn.Read
1,306
reflect. Type.Name
1,297
github.com/hashicorp/go-hclog. Logger.Warn
1,230
github.com/hashicorp/go-hclog. Logger.Info
1,219
github.com/onsi/gomega/types. AsyncAssertion.WithPolling
1,173
io. Seeker.Seek
1,168
github.com/prometheus/client_golang/prometheus. Observer.Observe
1,147
database/sql. Result.RowsAffected
1,133
google.golang.org/protobuf/reflect/protoreflect. Descriptor.FullName
1,124
image. Image.Bounds
1,114
github.com/vishvananda/netlink. Link.Attrs
1,111
net/http. RoundTripper.RoundTrip
1,083
github.com/go-playground/validator/v10. FieldError.Field
1,075
go.opentelemetry.io/otel/trace. Span.SetAttributes
1,048
github.com/go-openapi/testify/v2/internal/assertions. H.Helper
1,044
github.com/hashicorp/go-hclog. Logger.Trace
1,005
context. Context.Deadline
963
net/http. Flusher.Flush
956
github.com/sirupsen/logrus. FieldLogger.WithError
948
github.com/go-playground/validator/v10. FieldError.Param
923
net. Conn.SetReadDeadline
885
github.com/uber/cadence/common/metrics. Scope.IncCounter
876
google.golang.org/protobuf/reflect/protoreflect. MessageDescriptor.Fields
869
github.com/ClickHouse/clickhouse-go/v2/lib/driver. Conn.Exec
858
github.com/pingcap/tidb/context. Context.GetSessionVars
817
github.com/akamai/AkamaiOPEN-edgegrid-golang/v13/pkg/log. Interface.Debug
809
testing. TB.Logf
781
github.com/sirupsen/logrus. FieldLogger.WithFields
770
reflect. Type.Implements
760
go.temporal.io/server/common/log. Logger.Error
758
go.temporal.io/server/common/log. Logger.Info
745
go.opentelemetry.io/otel/trace. Tracer.Start
740
testing. TB.Cleanup
737
xorm.io/builder. Cond.And
728
github.com/uber/cadence/common/log. Logger.Info
725
k8s.io/kubectl/pkg/describe. PrefixWriter.Write
724
k8s.io/utils/clock. PassiveClock.Now
724
net. Conn.LocalAddr
719
github.com/codenotary/immudb/embedded/sql. TypedValue.RawValue
718
go.temporal.io/server/common/metrics. CounterIface.Record
701
github.com/kubernetes/kubernetes/staging/src/k8s.io/kubectl/pkg/describe. PrefixWriter.Write
698
github.com/sirupsen/logrus. InfoLogger.Infof
694
go/ast. Node.Pos
678
net. Conn.SetDeadline
676
hash. Hash.Reset
663
go/types. Type.Underlying
662
github.com/uber/cadence/common/metrics. Client.Scope
660
io/fs. FileInfo.Sys
653
vitess.io/vitess/go/trace. Span.Annotate
652
github.com/go-playground/validator/v10. FieldError.Tag
642
google.golang.org/protobuf/reflect/protoreflect. Message.Descriptor
638
github.com/baidubce/bce-sdk-go/bce. Client.SendRequest
629
github.com/uber/cadence/common/log. Logger.Error
623
github.com/hashicorp/go-hclog. Logger.Named
621
github.com/influxdata/telegraf. Accumulator.AddFields
605
github.com/photoprism/photoprism/internal/event. Logger.Errorf
604
net. PacketConn.Close
596
reflect. Type.In
590
google.golang.org/protobuf/reflect/protoreflect. FieldDescriptors.ByName
570
github.com/onsi/gomega/types. AsyncAssertion.ShouldNot
566
github.com/elastic/go-elasticsearch/v8/esapi. Transport.Perform
561
reflect. Type.Key
552
github.com/rclone/rclone/fs. DirEntry.Remote
552
github.com/jedib0t/go-pretty/v6/table. Writer.AppendRow
552
github.com/photoprism/photoprism/internal/event. Logger.Infof
551
sync. Locker.Unlock
551
reflect. Type.NumIn
543
encoding/binary. ByteOrder.Uint32
537
github.com/sagernet/gvisor/pkg/marshal. CopyContext.CopyInBytes
532
github.com/sagernet/gvisor/pkg/marshal. CopyContext.CopyOutBytes
532
io/fs. DirEntry.Info
521
github.com/cilium/cilium/pkg/metrics/metric. Vec.WithLabelValues
521
google.golang.org/protobuf/reflect/protoreflect. FieldDescriptor.Kind
518
google.golang.org/protobuf/reflect/protoreflect. Descriptor.Name
516
github.com/prometheus/client_golang/prometheus. Histogram.Observe
512
sync. Locker.Lock
509
github.com/miekg/dns. RR.Header
508
github.com/gruntwork-io/terragrunt/pkg/log. Logger.Debugf
503
net. Error.Timeout
498
github.com/json-iterator/go. API.Unmarshal
491
github.com/tetratelabs/wazero/internal/engine/wazevo/ssa. Builder.AllocateInstruction
488
gitea.dev/modules/setting. ConfigSection.Key
483
go.opentelemetry.io/otel/trace. Span.SetStatus
479
net. PacketConn.LocalAddr
476
github.com/photoprism/photoprism/internal/event. Logger.Debugf
474
hash. Hash32.Sum32
474
google.golang.org/protobuf/reflect/protoreflect. FieldDescriptor.Number
472
crypto. Signer.Public
454
github.com/influxdata/telegraf. Accumulator.AddError
451
gitea.dev/models/db. SQLSession.Where
451
github.com/photoprism/photoprism/internal/event. Logger.Warnf
447
gopkg.in/go-playground/validator.v9. FieldError.Field
443
net. Addr.Network
441
github.com/influxdata/telegraf. Logger.Debugf
439
github.com/influxdata/telegraf. Logger.Errorf
438
image. Image.At
437
github.com/ory/kratos/driver/config. Provider.Config
432
github.com/steveyegge/beads/internal/storage. Storage.CreateIssue
432
google.golang.org/protobuf/reflect/protoreflect. ProtoMessage.ProtoReflect
430
io. ReaderAt.ReadAt
429
github.com/spf13/afero. Fs.MkdirAll
429
go.opentelemetry.io/otel/trace. Span.RecordError
421
github.com/go-gitea/gitea/modules/setting. ConfigSection.Key
420
github.com/uber/cadence/common/clock. TimeSource.Now
419
github.com/elastic/go-elasticsearch/v7/esapi. Transport.Perform
406
image/color. Color.RGBA
406
github.com/prometheus/client_golang/prometheus. Registerer.MustRegister
404
hash. Hash64.Sum64
403
github.com/drand/kyber. Group.Point
400
reflect. Type.Size
391
github.com/hashicorp/boundary/internal/boundary. Entity.GetPublicId
390
github.com/go-chi/chi/v5. Router.Get
388
github.com/sirupsen/logrus. InfoLogger.Info
384
reflect. Type.AssignableTo
384
github.com/tetratelabs/wazero/api. Function.Call
381
github.com/rclone/rclone/fs. Info.Features
377
gopkg.in/go-playground/validator.v9. FieldError.Param
375
net. Conn.SetWriteDeadline
374
github.com/json-iterator/go. API.Marshal
370
reflect. Type.FieldByName
365
crypto/cipher. AEAD.NonceSize
364
github.com/datarhei/gosrt/packet. Packet.Header
361
vitess.io/vitess/go/trace. Span.Finish
360
gitea.dev/modules/git. ObjectID.String
359
go.uber.org/zap/zapcore. ObjectEncoder.AddString
359
github.com/uber/cadence/common/metrics. Scope.ExponentialHistogram
358
github.com/thanos-io/thanos/pkg/extkingpin. FlagClause.Flag
357
github.com/go-restruct/restruct/expr. Value.RawValue
357
github.com/sirupsen/logrus. DebugLogger.Debugf
355
io/fs. File.Close
354
reflect. Type.ConvertibleTo
353
github.com/sagernet/gvisor/pkg/marshal. CopyContext.CopyScratchBuffer
350
github.com/sagernet/sing/common/logger. ContextLogger.InfoContext
350
reflect. Type.NumOut
349
github.com/rclone/rclone/fs. DirEntry.Size
345
github.com/jedib0t/go-pretty/v6/table. Writer.Render
345
github.com/tetratelabs/wazero/api. Module.Memory
344
github.com/gogo/protobuf/protoc-gen-gogo/generator. Single.Use
342
github.com/prometheus/client_golang/prometheus. Gauge.Inc
341
go/ast. Node.End
340
reflect. Type.Out
340
crypto/cipher. AEAD.Open
339
github.com/runatlantis/atlantis/server/logging. SimpleLogging.Debug
337
github.com/google/cel-go/common/ast. Expr.ID
337
google.golang.org/protobuf/reflect/protoreflect. FieldDescriptor.Message
334
net. PacketConn.WriteTo
331
vitess.io/vitess/go/vt/logutil. Logger.Infof
330
crypto/cipher. AEAD.Seal
329
github.com/opentracing/opentracing-go. Span.Finish
328
istio.io/istio/pkg/kube. Client.Kube
327
github.com/twmb/franz-go/pkg/kgo. Logger.Log
326
google.golang.org/protobuf/reflect/protoreflect. Message.Interface
326
go.temporal.io/server/service/history/interfaces. MutableState.GetExecutionInfo
323
k8s.io/apimachinery/pkg/runtime. Object.GetObjectKind
321
github.com/drand/kyber. Point.Mul
314
github.com/syncthing/syncthing/lib/logger. Logger.Debugln
313
github.com/a-h/parse. Parser.Parse
313
github.com/gruntwork-io/terragrunt/internal/component. Component.Path
313
github.com/miekg/dns. ResponseWriter.WriteMsg
312
github.com/eclipse/paho.mqtt.golang. Token.Error
311
github.com/tetratelabs/wazero/api. Closer.Close
311
github.com/heroiclabs/nakama/server. session.Send
309
go/types. Object.Type
309
github.com/canopy-network/canopy/lib/crypto. AddressI.Bytes
307
github.com/stripe/stripe-go/v74. Backend.Call
306
github.com/influxdata/telegraf. Metric.Name
306
github.com/google/go-containerregistry/pkg/name. Reference.Context
305
net/http. Hijacker.Hijack
305
github.com/stretchr/testify/assert. Helper
305
github.com/uber/cadence/service/history/execution. MutableState.GetExecutionInfo
304
k8s.io/apimachinery/pkg/runtime/schema. ObjectKind.GroupVersionKind
303
io. StringWriter.WriteString
300
github.com/siderolabs/talos/internal/app/machined/pkg/runtime. Runtime.State
297
github.com/spf13/afero. Fs.Stat
295
github.com/sirupsen/logrus. WarnLogger.Warnf
293
io/fs. FS.Open
292
gopkg.in/go-playground/validator.v9. FieldError.Tag
291
github.com/jedib0t/go-pretty/v6/table. Writer.AppendHeader
290
crypto/cipher. Stream.XORKeyStream
289
go.temporal.io/server/common/log. Logger.Warn
288
net. PacketConn.ReadFrom
288
golang.org/x/crypto/ssh. PublicKey.Marshal
287
github.com/expr-lang/expr/internal/testify/assert. Helper
285
github.com/uber/cadence/common/log. Logger.Debug
282
github.com/googleapis/mcp-toolbox/internal/log. Logger.DebugContext
279
github.com/tetratelabs/wazero/api. Module.ExportedFunction
279
github.com/sagernet/quic-go/internal/utils. Logger.Debugf
278
k8s.io/apimachinery/pkg/runtime. Object.DeepCopyObject
278
go.temporal.io/server/common/metrics. Handler.WithTags
275
github.com/syncthing/syncthing/lib/logger. Logger.Debugf
273
github.com/cockroachdb/cockroach/pkg/col/coldata. Batch.ColVec
273
github.com/sirupsen/logrus. DebugLogger.Debug
270
github.com/crossplane/crossplane-runtime/pkg/logging. Logger.Debug
269
encoding/binary. ByteOrder.PutUint32
269
io/fs. DirEntry.Type
268
syscall. RawConn.Control
266
github.com/go-playground/validator/v10. FieldError.Type
265
go.opentelemetry.io/otel/trace. Span.SpanContext
265
github.com/hashicorp/go-hclog. Logger.With
264
fmt. State.Write
263
go.opentelemetry.io/otel/metric. Int64Counter.Add
261
hash. Hash.Size
261
github.com/ory/kratos/x. WriterProvider.Writer
258
encoding. BinaryMarshaler.MarshalBinary
258
gitea.dev/models/db. SQLSession.ID
257
github.com/pingcap/tidb/plan. Plan.Schema
256
github.com/longhorn/longhorn-manager/k8s/pkg/client/clientset/versioned. Interface.LonghornV1beta2
256
github.com/elastic/go-elasticsearch/v6/esapi. Transport.Perform
255
github.com/pingcap/tidb/expression. Expression.GetType
251
testing. TB.TempDir
251
github.com/anchore/go-logger. TraceMessageLogger.Trace
250
github.com/tetratelabs/wazero/internal/engine/wazevo/backend. Compiler.ValueDefinition
249
github.com/yuin/goldmark/util. BufWriter.WriteString
245
github.com/uber/cadence/common/log. Logger.Warn
245
github.com/gravitational/teleport/lib/services. Resource.GetName
241
go.opentelemetry.io/otel/trace. Span.AddEvent
238
github.com/influxdata/telegraf. Metric.Time
238
google.golang.org/protobuf/reflect/protoreflect. Descriptor.ParentFile
238
github.com/influxdata/telegraf. Metric.Fields
238
github.com/prometheus/client_golang/prometheus. Gauge.Dec
234
github.com/aws/smithy-go. APIError.ErrorCode
234
github.com/fission/fission/pkg/generated/clientset/versioned. Interface.CoreV1
233
crypto/elliptic. Curve.Params
231
github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase. Handler.Do
231
github.com/cockroachdb/cockroach/pkg/sql/sem/tree. TypedExpr.ResolvedType
229
github.com/sirupsen/logrus. ErrorLogger.Errorf
226
go/types. Object.Name
226
go.temporal.io/server/common/clock. TimeSource.Now
226
github.com/drand/kyber. Group.Scalar
224
go/types. Type.String
223
google.golang.org/protobuf/reflect/protoreflect. Message.Get
222
reflect. Type.NumMethod
222
github.com/docker/cli/cli/command. Streams.Out
221
github.com/fission/fission/pkg/fission-cli/cliwrapper/cli. Input.String
221
io. ByteReader.ReadByte
221
github.com/sagernet/sing/common/logger. Logger.Error
220
k8s.io/apimachinery/pkg/apis/meta/v1. Object.GetName
220
k8s.io/apimachinery/pkg/labels. Selector.String
219
fmt. State.Flag
219
github.com/hashicorp/boundary/internal/db. Writer.DoTx
218
github.com/codenotary/immudb/embedded/logger. Logger.Infof
216
github.com/uber/cadence/common/metrics. Scope.Tagged
216
google.golang.org/protobuf/reflect/protoreflect. Message.Set
216

Showing the top 300 of 855 interface methods by dispatch. Search any method by name up top, or open it directly.

Dispatch calls count the callsites that go through the interface method; the runtime target may be any implementation. That’s why these are reported separately from the resolved ranking. See the taxonomy.

what implements each shape

The types behind the interfaces

This index lists the concrete types the checker proved satisfy each interface, found across the corpus; each shape shows up to 15 here, with the full number of implementations stated beside it. Membership is decided by the type checker, never by name.

io.Closer std 61,196 types

Showing 15 of 61,196 types found across the corpus.

context.Context std 22,826 types

Showing 15 of 22,826 types found across the corpus.

io.Writer std 58,030 types

Showing 15 of 58,030 types found across the corpus.

net/http.Handler std 57,180 types

Showing 15 of 57,180 types found across the corpus.

io.Reader std 57,752 types

Showing 15 of 57,752 types found across the corpus.

fmt.Stringer std 301,335 types

Showing 15 of 301,335 types found across the corpus.

io.Seeker std 56,638 types

Showing 15 of 56,638 types found across the corpus.

net/http.RoundTripper std 56,707 types

Showing 15 of 56,707 types found across the corpus.

sync.Locker std 53,813 types

Showing 15 of 53,813 types found across the corpus.

io.ReaderAt std 56,584 types

Showing 15 of 56,584 types found across the corpus.

database/sql/driver.Valuer std 56,869 types

Showing 15 of 56,869 types found across the corpus.

sort.Interface std 29,878 types

Showing 15 of 29,878 types found across the corpus.

encoding.TextUnmarshaler std 57,639 types

Showing 15 of 57,639 types found across the corpus.

encoding.TextMarshaler std 57,561 types

Showing 15 of 57,561 types found across the corpus.

encoding/json.Marshaler std 176,001 types

Showing 15 of 176,001 types found across the corpus.

io.WriterTo std 57,119 types

Showing 15 of 57,119 types found across the corpus.

encoding/json.Unmarshaler std 104,696 types

Showing 15 of 104,696 types found across the corpus.

io.ReaderFrom std 56,592 types

Showing 15 of 56,592 types found across the corpus.

error std 76,809 types

Showing 15 of 76,809 types found across the corpus.

io.ReadCloser std 53,318 types

Showing 15 of 53,318 types found across the corpus.

io.ReadWriter std 53,170 types

Showing 15 of 53,170 types found across the corpus.

io.WriteCloser std 53,276 types

Showing 15 of 53,276 types found across the corpus.