diff --git a/parse/parse.go b/parse/parse.go index 3421669..e68703b 100644 --- a/parse/parse.go +++ b/parse/parse.go @@ -671,7 +671,7 @@ func getFunction(exp ast.Expr, pi *PkgInfo) (*Function, error) { for _, imp := range pi.Imports { if firstname == imp.Name { for _, f := range imp.Info.Funcs { - if funcname == f.Name { + if funcname == f.Name && f.Receiver == "" { return f, nil } }