rjeczalik / interfaces

Code generation tools for Go.
MIT License
420 stars 31 forks source link

Format sources #25

Closed kyoh86 closed 3 years ago

kyoh86 commented 3 years ago

fix: #24 on 90242d9 refactor on 66ca483

for go modules

If you accept this PR, please put a new tag for go modules.

kyoh86 commented 3 years ago

@rjeczalik how's this?

rjeczalik commented 3 years ago

@kyoh86 I don't have strong opinion on this, I just happen to add additional line to format generated go files, since you can't rely on every tool formatting them.

//go:generate interfacer ... -o file.go
//go:generate go fmt file.go

Having said that the change looks good, thanks!