Golang - Github Mux,context.go - >没有相应的文件和目录

时间:2014-06-24 12:29:38

标签: go mux

我想用(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文件....我该如何解决?

1 个答案:

答案 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