Run Go scripts in local vagrant machine -


i want run go scripts vagrant. when vagrant up, , run command 'go version' not see go installed , told

the program 'go' not installed.  can install typing: sudo apt-get install golang-go 

` did install , it's running simple scripts fmt.println()

then question is...

i have repository lot of code in go. , need run in virtual machine vagrant.

then best way run scripts worked on outside of vagrant vm because when vagrant up not see had install go.

you don't want deploy via source , go run. run command connivence wrapper builds , executes binary in 1 step. there's lot can't do. compile code, , run binary.

if deployment target different os/architecture, there's nothing wrong building executable in vm, make sure it's has go. can cross-compile code if don't have dependency on cgo, may easier.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -