Skip to content

runtime: Frames example does not produce documented output #70057

@jimmyfrasche

Description

@jimmyfrasche

Go version

go version go1.23.2 linux/amd64

Output of go env in your module/workspace:

Ran on the playground and locally

What did you do?

Run the example at https://pkg.go.dev/runtime#example-Frames

What did you see happen?

It outputs only - more:true | runtime.Callers

Commenting out the check that frame.File contains "runtime/" shows the missing frames and more.

What did you expect to see?

The same output that the example shows before it is run:

- more:true | runtime.Callers
- more:true | runtime_test.ExampleFrames.func1
- more:true | runtime_test.ExampleFrames.func2
- more:true | runtime_test.ExampleFrames.func3
- more:true | runtime_test.ExampleFrames

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.SuggestedIssues that may be good for new contributors looking for work to do.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions