Created
July 24, 2018 07:34
-
-
Save cuiwm/6caf4abed4139e59fb58037dbce9a46f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 全局环境变量设置 | |
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