gocmt icon indicating copy to clipboard operation
gocmt copied to clipboard

add prefix match exclude feature

Open buhuipao opened this issue 4 years ago • 1 comments

Add prefix match exclude feature, such as

$ ./gocmt -d testdata/pkg -e 'testdata/pkg/xxx/'
ignore testdata/pkg/xxx/xxx.go
testdata/pkg/yyy/yyy.go no changes

or

$ ./gocmt -d testdata/pkg -e 'testdata/pkg/xxx/,testdata/pkg/yyy/'
ignore testdata/pkg/xxx/xxx.go
ignore testdata/pkg/yyy/yyy.go

buhuipao avatar Nov 18 '21 08:11 buhuipao

Vote for this pull requests.

When you must dealing with many zz_generated_xxx, the exclusion features will helps you a lot.

alswl avatar Dec 27 '21 09:12 alswl