Skip to content

doc examples fail to run in pkg.go.dev #138

Description

@jaloren

All six examples on pkg.go.dev failed to run. They import internal/tracetest to get MustClean, the playground builds them as their own module, and internal packages aren't importable from there. Readers also see that import in the code block, which is useless to them since they can't use it either.

So the examples have to be self-contained, stdlib plus errtrace, everything they touch in the same file. Do we need MustClean in the doc examples?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions