Reputation: 12385
I have started to learn Go and I have installed Go plugin on IntelliJ I have compiled and run sucessful some really simple code pieces. However I don't find any bin file in the bin folder, and the compiler runs this command to execute the app
C:/Go/bin/go.exe run E:/IntelliJ/untitled/src/myApp.go
How to get the binary of my compiled code?
Upvotes: 0
Views: 4149
Reputation: 839
You simply need to specify output dir in your run/debug configuration like
E:\IntelliJ\untitled\.idea\output
Upvotes: 0
Reputation: 99254
You need to use go build
, go run
simply creates a temporary file somewhere and executes it then deletes it.
Upvotes: 1