"Cannot find declaration to go to" for GoLand
Hey guys,
I had a problem for 'cannot find declaration to to to'', here is a simple 'hello world' demo, demo can run and get "hello world".
Goland 2019.3, MacOS 10.15
Can you help me?

Please sign in to leave a comment.
It looks like the "hello.go" file was accidentally marked as a plain text file instead of a Go file.
To resolve this, please go to "Settings/Preferences | Editor | File Types" then search for the "Text" type in the "Recognized file types:" section and then, under "Registered patterns:", look for the "hello.go". By the looks of it, "common.go" is also not recognized, so make sure that is not present as well, or that the whole "*.go" pattern is not present there. If they are, then remove them using the "-" button from the list.
You can also have a look at the "Ignore files and folders" input box at the bottom of the mentioned page.
Great, it works. Thanks.