How should I use vendor in Go 1.6?
问题 First I have read this answer: Vendoring in Go 1.6, then I use it as my example. My gopath is GOPATH="/Users/thinkerou/xyz/" , and the follow like: thinkerou@MacBook-Pro-thinkerou:~/xyz/src/ou$ pwd /Users/baidu/xyz/src/ou thinkerou@MacBook-Pro-thinkerou:~/xyz/src/ou$ ls main.go vendor Now, I use go get , then becomes this: thinkerou@MacBook-Pro-thinkerou:~/xyz/src/ou$ ls main.go vendor thinkerou@MacBook-Pro-thinkerou:~/xyz/src/ou$ cd vendor/ thinkerou@MacBook-Pro-thinkerou:~/xyz/src/ou/vendor