Skip to content

Source package not imported if interfaces placed in different package #48

@kasvtv

Description

@kasvtv

If one generates an interface into a different package than the source package, e.g.:

ifacemaker -f ../bindings.go -s MyStruct -o i_mystruct.go -p interfaces -i IMyStruct

Then the generated code may be invalid if any of the method signatures contain custom types defined in the source package, e.g.: the generated code in the interfaces package references a custom type defined in the source package as MyType instead of importing from the source package and refering to it as bindings.MyType

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions