GO BUILD ... where is the executable?

Yes, I get it if I run go build in the terminal. But if I run go build from a configuration file, the program starts but the executables is no where to be found.

Where is it?

Thanks

0
2 comments
Official comment

Hi Francesco,

 

By default, the executable is placed in a folder in the temporary directory and it's removed at the end of the run session.
However, you can change the location of the binary via "Run | Edit Configuration ... | name of the configuration | Output Directory" and then the binary will be placed in the specified directory and it will not be removed at the end of the run session. You can also choose "Run | Edit Configuration | Templates | Go Build | Output Directory" and this will be remembered for all run configurations of the current project.

Hope it helps.

Please sign in to leave a comment.