Skip to content

Instantly share code, notes, and snippets.

@cuiwm
Created July 24, 2018 07:34
Show Gist options
  • Save cuiwm/6caf4abed4139e59fb58037dbce9a46f to your computer and use it in GitHub Desktop.
Save cuiwm/6caf4abed4139e59fb58037dbce9a46f to your computer and use it in GitHub Desktop.
# 全局环境变量设置
export GOPATH=/users/choe
# 局部环境变量设置,必须是前置条件
ok1:export GOPATH=/users/choe/github/en/code/
ok1:
@echo $(GOPATH)
# 错误的环境变量的设置
error:
export GOPATH=/users/choe/github/
@echo ${GOPATH} #output /Users/choe/go
error2:
@export GOPATH=/users/choe/github/ & echo $(GOPATH)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment