Skip to content

testing: document how to export unexported identifiers in *_test.go  #56995

@changkun

Description

@changkun

While I am trying to introduce the usage of export_test.go to someone new to Go, I failed to find a document regarding this feature neither in testing nor in go command, not even in the wiki.

I am not sure if I overlooked somewhere, but I would propose documenting this somewhere more visible, such as the testing package's document.

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.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions