Goland running a simple Hello World Example

已回答

I have a working directory Golang with a file hello.go.  There is an error message that I cannot make go away.

I just want to do a go run hello.go as I can do from the terminal.

When I click on the working directory, none of my files show up in the dropdown.  Just the triangle symbol on the dropdown changes direction and that's all.

0

Could you please navigate to File | Settings | Editor | File Types, find Text or Auto-detect file type by content, and exclude hello.go from the File name patterns list? Does it help? If not, please, provide a screenshot of your project tree inside the IDE.

0

请先登录再写评论。