generator-angular-go-martini icon indicating copy to clipboard operation
generator-angular-go-martini copied to clipboard

Generating using `yo angular-go-martini:entity [myentity]` doesn't generate well-formatted go code

Open shalecraig opened this issue 11 years ago • 0 comments

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 foobar to 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?

shalecraig avatar Oct 10 '14 09:10 shalecraig