How to launch the whole project in Gogland?

I have a small project with several .go files. When I run main.go only this compiler, but nothing else, so my application is overwhelming. I understand that I need to change the settings in Run -> Edit Configurations, but I don't know what to do exactly. The IDE also does not see the pre-compiled terminal package, so the option "Package" instead of "File" does not work.

+4
source share
2 answers

To run the entire project, you must run Run → Edit Configuration, install Run Kind to Package and enter the field. Package name of your project.

+10
source

Go Gogland IDE, :

  • ,
  • , main.go , main()
  • "" → " ".
  • "+",
  • → : ""
  • → : [ , main.go]
  • → : [ GOVATH env]
  • ""

go IDE.

-1

Source: https://habr.com/ru/post/1665137/


All Articles