Skip to content

Using rewrite rules with gofumpt #275

@silverwind

Description

@silverwind

I would like to rewrite interface{} to any, but the docs seem unclear about rewrite rules:

Finally, note that the -r rewrite flag is removed in favor of gofmt -r, and the -s flag is hidden as it is always enabled.

What does this statement mean? Does one need to run gofmt before gofumpt to be able to use rewrite rules? A docs clarification would be nice.

Also, I wonder how a tool that is advertized as a "drop-in replacement" does not support all features of the tool it's meant to replace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions