I like using shebangs to run my Perl scripts directly:
#!/usr/bin/env perl
What\'s the shebang for Go programs?
There isn't one by default. There is a third-party tool called gorun that will allow you to do it, though. https://wiki.ubuntu.com/gorun
Unfortunately the compilers don't like the shebang line. You can't compile the same code you run with gorun.