Closed davidkuridza closed 7 years ago
This is indeed a bug. This can very easily be seen as either a mistake in the GenerateOptions
documentation or a bug in the (*GenerateOptions).validate
method. I'm far more inclined to see this as a documentation mistake. I actively want to discourage people from putting assets into the main package, they should go into an internal subpackage. (This is for various reasons, one of which is faster compilation).
If you wish to open a pull request, I'd suggest it be to correct the documentation.
GenerateOptions struct is defined like this:
However, doing something like this, fails with a validation error:
Based on the comment
Defaults to 'main'.
, I assume even ifGenerateOptions
is present withoutPackage
, default value should be set.Just wanted to clarify it before opening a pull request.