Skip to content

Imported packages that end with the name of the current package are replaced incorrectly #42

@Peter-Maguire

Description

@Peter-Maguire

e.g

package xyz

import "example.com/abcdxyz"

type Demo struct {
}

func (demo *Demo) TestFunction(input abcdxyz.ImportedType){

}

would create an interface of

package x

type Demo interface{
   TestFunction(input abcdImportedType)
}

The offending line of code is here:
https://github.com/vburenin/ifacemaker/blob/master/maker/maker.go#L100

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