Example:
In package io the type ByteReader defines an interface that wraps the method ReadByte() (c byte, err error).
What is the
There are now better ways to do this than simply searching.
Go Oracle has an implements query that will show which types implement a particular interface, and which interfaces a particular type implements.
Additionally, here is a tool that claims to offer the same functionality: https://github.com/dominikh/implements.
2020 Update: The official Go language server, gopls, also has support for this query:
➜ gopls implementation -h
display selected identifier's implementation
Usage: implementation [flags]
Example:
$ # 1-indexed location (:line:column or :#offset) of the target identifier
$ gopls implementation helper/helper.go:8:6
$ gopls implementation helper/helper.go:#53