AndreaF
AndreaF

Reputation: 12385

How to compile Google Go bin with IntelliJ

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

Answers (2)

Le_Enot
Le_Enot

Reputation: 839

You simply need to specify output dir in your run/debug configuration like

E:\IntelliJ\untitled\.idea\output

Upvotes: 0

OneOfOne
OneOfOne

Reputation: 99254

You need to use go build, go run simply creates a temporary file somewhere and executes it then deletes it.

Upvotes: 1

Related Questions