Skip to content

How to customize gofmt behaviour? #40028

@Paxa

Description

@Paxa

Is it possible to disable or customize some gofmt rules?

May be it support some config file? Support for something like .gofmt_config in project folder would be perfect

I prefer to keep spaces around math symbols

a = perPage*(pageNumber+checkNextPageCount-1) + 1
records[len(records)-1]

// I like with spaces
a = perPage * (pageNumber + checkNextPageCount - 1) + 1
records[len(records) - 1]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions