I want to run executables in my $GOPATH/bin directory without having to cd there so I've added the following to my .profile file:
export GOBIN=$HOME/go-workspace/bin
function _rungo() { "$GOBIN" "@$1" }
alias rungo='_rungo'
The alias definition is on line 28. The idea is that on the command line I type rungo executable_name to run an executable.
When I log into my account, I get the following error:
line 31: syntax error: unexpected end of file
If I comment out the alias definition I get this error
line 29: syntax error: unexpected end of file
So obviously my function definition is incorrect.
What am I doing wrong?