generator-angular-go-martini
generator-angular-go-martini copied to clipboard
Generating using `yo angular-go-martini:entity [myentity]` doesn't generate well-formatted go code
Running yo angular-go-martini:entity [myentity], the code is not well-formatted.
To reproduce:
- Create a new project using
yo angular-go-martini - Run
go fmt server.go - Run
yo angular-go-martini:entity foobarto create a model.
The diff indents differently and has a different style the version of go that I'm using. I'm not sure how you're generating the entities, but it's a bit jarring to suddenly have a large diff because the code is formatted according to those formatting rules.
Maybe you may want to run go fmt on the generated code before presenting the conflict to the end-user?