Skip to content

Instantly share code, notes, and snippets.

@yinyin
Last active October 15, 2017 04:43
Show Gist options
  • Save yinyin/8b79c8d6deb37e39bab0f1e7d51d4b1a to your computer and use it in GitHub Desktop.
Save yinyin/8b79c8d6deb37e39bab0f1e7d51d4b1a to your computer and use it in GitHub Desktop.
Wrapper script for Go
#!/bin/bash
GOBASEPATH=/PATH/TO/GO/INSTALLATION
SUBJECTCMD=`basename "${0}"`
exec ${GOBASEPATH}/bin/${SUBJECTCMD} "${@}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment