Skip to content

Instantly share code, notes, and snippets.

@nealeu
Created January 3, 2019 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nealeu/fb65310298827441c80b63eb2d80c8e6 to your computer and use it in GitHub Desktop.
Save nealeu/fb65310298827441c80b63eb2d80c8e6 to your computer and use it in GitHub Desktop.
Independent go projects with dep
#!/bin/bash
# To start using a project or working for a given client I'll type the client or project name, and I'll have an
# alias defined in .profile to run this (so that I actually end up in the directory that this file cd's to)
# alias 'acme-widget=source $HOME/bin/acme-widget'
CLIENT_ROOT=$HOME/clients/acme
export GOPATH=$CLIENT_ROOT
cd $GOPATH/src/widget
# widget is the project directory as cloned from source control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment