Skip to content

x/tools/cmd/stringer: document option 'trimprefix' #75481

@mtenberge

Description

@mtenberge

Go version

Online 'Latest' version on the pkg.go.dev documentation

Output of go env in your module/workspace:

irrelevant

What did you do?

Viewing the online documentation on stringer at https://pkg.go.dev/golang.org/x/tools/cmd/stringer.

What did you see happen?

Nowhere in the package documentation is any mention of the stringer command line option trimprefix.

What did you expect to see?

The Usage() output does mention trimprefix, see https://cs.opensource.google/go/x/tools/+/refs/tags/v0.37.0:cmd/stringer/stringer.go;drc=6016188d8e58282ea0a17064039059f275da5d01;l=96

I'd expect the option to also be mentioned in the package comments/documentation.

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.ToolsThis label describes issues relating to any tools in the x/tools repository.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions