rjeczalik / interfaces

Code generation tools for Go.
MIT License
420 stars 31 forks source link

Fixes #44: Fix problem generating an interface in same package as impl #46

Open stgraham2000 opened 9 months ago

stgraham2000 commented 9 months ago

Modify generator to detect if the dependency matches the new interface's package name and if so, skip adding the dependency (so skip import).

Also, when generating the parameter package names, if the package matches the new interface's package then make the package blank.