when operating go doc -ex io, it’ll present me the names of the instance features, however when utilizing the -all flag to point out extra info, it shows nothing in regards to the instance features
$ go model
go model go1.27.1 linux/amd64
$ go doc -ex io | rg Instance
func ExampleCopy()
func ExampleCopyBuffer()
func ExampleCopyN()
func ExamplePipe()
func ExampleReadAll()
func ExampleReadAtLeast()
func ExampleReadFull()
func ExampleWriteString()
func ExampleLimitReader()
func ExampleMultiReader()
func ExampleTeeReader()
func ExampleSectionReader()
func ExampleMultiWriter()
$ go doc -ex -all io | rg Instance
The pipe within the instance is hiding the half you need to examine. rg Instance solely prints traces that include the phrase Instance, so it’ll present the perform names and discard the our bodies and surrounding documentation. Strive go doc -all -ex io with out the pipe first, or goal one instance similar to go doc -ex io.ExampleCopy. In the event you nonetheless need filtering, use context with ripgrep (for instance rg -A 8 '^func Instance') or save the total output and examine it. The -all flag controls how a lot bundle documentation go doc emits; it doesn’t change what a later grep retains.

