As Go is becoming the language of the \"system\". I wonder if it\'s possible to run Go code as a script, without compiling it, is there any possibility to do that?
The
I am not an expert in go, but you can do something like this. I know this is not elegant, but may be something to start with :)
~$ cat vikas.go //usr/bin/env go run "$0" "$@"; exit package main import "fmt" func main() { fmt.Printf("Hello World\n") } ~$ ~$ ./vikas.go Hello World ~$