Closed lhemala closed 7 years ago
This is a bug in goderive. I will fix it, hopefully later today. Thanks for reporting.
If you are using it in a project, our users list could really use some help :)
sadly we don't have any open source repositories (yet) :(
Proprietary is also cool, we can link to the company. But thats only if you want and are allowed to.
First of all: goderive is a really cool tool, thanks for your work ;)
I have the problem that I use
deriveKeysString
where the argument is of typemap[string][]*event.Sensor
and is imported viaimport "github.com/XXX/libs.event/proto/src/go"
.The name of the package
"github.com/XXX/libs.event/proto/src/go"
is event (which works fine in the rest of my code) but goderive uses a named import with the folder as name, resulting in the following code:This obviously won't compile since
go
is reserved keyword.Is it possible to force goderive to use the package name instead of the folder name? (I know I can rename the folder, but this breaks the naming scheme as there also are folders named
java
orcpp
(as a workaround I use
sed
to changego
toevent
)