Hello, I'm currently developing a Go application for RaspberryPi. I'd like to cross compile the application in the IDE, deploy the executable into the device (SSH or FTP) and then start the application with delve. Currently I'm doing this manually, is there an automatic way in GOland IDE, so I can get a similar experience like Android app development?
评论:
callcifer:
gngeorgiev:Yes, you can specify
GOOS
andGOARCH
in your run configuration to target different platforms. For uploading executables, read this guide, which applies to the entire Intellij platform.
callcifer:Yeah, it's called scripting.
E.g. bash, makefile etc.
How does that answer OP's question? They specifically asked for a way to do it inside the IDE with a similar experience to Android Studio.
