Skip to content

proposal: x/tools/cmd/goimports: ability to exclude specific directory, like vendor #54706

@bilalcaliskan

Description

@bilalcaliskan

Currently as i know, goimports dont have an option to exclude specific directory so i am excluding vendor directory on my personal projects like below:

for item in $(find . -type f -name '*.go' -not -path './vendor/*'); do goimports -l -w $item; done

it is a little bit uggly i guess, so i and i think lots of gophers like me will be glad if that option is supported by goimports.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions