#!/bin/bash

if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then
  echo 'This script must be sourced, not executed. Run:'
  echo
  echo '    . scripts/set_gopath.sh'
  echo
  exit 1
fi

export GOPATH="$GOPATH:$(readlink -f $(dirname ${BASH_SOURCE[0]})/..)"

echo 'Updated GOPATH in the current shell:'
echo
echo "    GOPATH=$GOPATH"
echo

Add script to update GOPATH
Add script to update GOPATH
