我想用(go get github.com/gorilla/mux
)安装Mux包但我总是得到errormessage
# github.com/gorilla/context
open go/src/github.com/gorilla/context/context.go: No such file or directory
我自己创建了目录github.com,gorilla和context。但我没有context.go文件....我该如何解决?
答案 0 :(得分:6)
只需使用go get
安装:
$ go get github.com/gorilla/context
$ cd $GOPATH/src/github.com/gorilla/context/
~/go/src/github.com/gorilla/context$ ls
context.go context_test.go doc.go LICENSE README.md