-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
When we have some interface with methods that use parameters from another package that was imported with an alias... the result is not going well, just to explain:
This is working:
Code:
import ".../pkg/proto"
...
// MyInterface is a driven port.
//
//go:generate gowrap gen -g -i MyInterface -t ../templates/log.go.tmpl -o ./decorators/logs/url_shortener_gateway_with_logs.go
type MyInterface interface {
MyMethod(ctx context.Context, body proto.Incomming) (proto.Outcomming, error)
}This isn't working:
Code:
import alias ".../pkg/proto"
...
// MyInterface is a driven port.
//
//go:generate gowrap gen -g -i MyInterface -t ../templates/log.go.tmpl -o ./decorators/logs/url_shortener_gateway_with_logs.go
type MyInterface interface {
MyMethod(ctx context.Context, body alias.Incomming) (alias.Outcomming, error)
}I am using the latest version of package.
TeddyDD and oncilla
Metadata
Metadata
Assignees
Labels
No labels