Maybe you could use something like this https://github.com/pinnacles/validate-go-generate Or code your own checker/validator It would avoid situation like #44 were generated files where forgotten, and that have to be fixed by #48