我想用 (go get github.com/gorilla/mux
) 安装 Mux 包,但我总是收到错误消息
# github.com/gorilla/context
open go/src/github.com/gorilla/context/context.go: No such file or directory
我自己创建了目录 github.com、gorilla 和 context。但是我没有 context.go 文件....我该如何修复它?
最佳答案
只需使用 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
关于Golang - Github Mux, context.go -> 没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24386680/