Closed marmiha closed 11 months ago
Wrote too quick, duplicate of #35. For anyone else write the full path like this:
//go:generate goverter --packageName=converter --output=./converter.gen.go --packagePath=github.com/converter github.com/converter
Describe the bug Generating the converter in the same folder as the interface extends results in an invalid package name "commandlinearguments" when used in pair with local converter functions extends functionality.
To Reproduce
Run go generate on this example:
Which produces
converter.gen.go
with invalid imports:Expected behavior
It should detect that the conversion methods are in the same package and thus does not import anyhting when accessing the extended methods.
I have also tried this with different combinations of cmd line arguments but nothing worked.