#!/bin/sh
#
# gopath - export `$GOPATH` and add to `$PATH`

# shellcheck disable=SC2250

if [ "$#" != 1 ]; then
  echo "Usage: $(basename "$0") <path>" >&2
  exit 1
fi
p="$(readlink -f "$1")"
export GOPATH="$p"
export PATH="$p/bin:$PATH"
