Skip to content

x/tools/cmd/goimports: New feature, option to always use parentheses #48176

@mcandre

Description

@mcandre

I would love an option to force goimports to always use parentheses, even for .go source files with only one import line.

By always using parentheses, the diff's between refactoring commits will be shorter. It's the same reason we use trailing commas on Go collections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.ToolsThis label describes issues relating to any tools in the x/tools repository.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions