Closed mstoykov closed 8 years ago
The example for go:generate
comments is slightly wrong. It contains -output > "types.go"
which, I think, is wrong.
yes - i fixed it
if the inputlist is empty file or missing, go generate
will have to just log it without actually failing.
Currently if someone decides to write their own modules they can do it and just put them in a directory for the given module. But running
go generate
will changetypes.go
in order for the modules to be imported and useful. This means that it will be harder to do other changes and not accidentally committypes.go
.I propose that we add the possibility for the module_generator to inspect a predefined gitignored file,
additional.list
, with list of package names to be included inadditional_types.go
.Illustrating example:
This means that the changes will be to the:
new.go
filesadditional_types.go.template
additional.list
,additional_types.go
)types.go.template
and move everything, but adding to the map, innew.go