goflymake icon indicating copy to clipboard operation
goflymake copied to clipboard

Functions with parameters that are private to the class show up as undefined

Open abourget opened this issue 10 years ago • 0 comments

I have an interface:

type mobileSession interface { ... }

and a function that uses it:

func NewTestDevice(session mobileSession) { ... }

in code where NewTestDevice is used, it is shown as undefined. The code compiles without error, but emacs keeps telling me it's undefined.

I might not be asking to the right project though, because gofmt / goimports seems to refuse to automatically load a package when the params are not all public, too. Where would the problem be, if this is the case ?

abourget avatar Mar 10 '15 03:03 abourget