QUESTIONS
MAC下使用go install遇到以下问题:
go install: no install location for directory /Users/Daryl/go/src/tire outside GOPATH
解决办法:
When you run go install Go looks for $GOBIN env variable path. Either you need to
set your $GOBIN to $GOPATH/bin
export GOBIN=$GOPATH/bin
and/or add $GOBIN to your OS search path
export PATH=$PATH:$GOBIN
To use the command without getting the error.
TIPS
1.判断map中一个key是否存在
// 解析路由
if _, ok := map[key]; ok {
}