rjeczalik / interfaces

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

Fix fixup function for case that import path of package has different… #20

Closed hanofzelbri closed 4 years ago

hanofzelbri commented 4 years ago

Initial problem: Parameter of struct function is imported. This imported package folder is different to its package name.

Example: interfacer -for github.com/minio/minio-go/v6.Client -as contentservice.MinioClient -o minio_client_interface.go

rjeczalik commented 4 years ago

Looks good! Thanks you @hanofzelbri for your contribution! :tada: