govendor 包管理
1.安装 go get -u github.com/kardianos/govendor 2.验证是否安装成功 govendor 安装成功 如果在 执行命令时提示 注意:需要你手动的把%go_path%/bin 下的govendor.exe 文件拷贝到%go_root%/bin 文件夹下 3.初始化govendor govendor init 在执行govendor init 命令时注意需要在项目目录下新建src目录,否则就会报错“Error: GetFileAttributesEx src: The system cannot find the file specified.” 4.vendor.json 初始化成功后此时项目目录下应该会生成一个文件夹vendor,让我们打开vendor文件夹后有个vendor.json文件 { "comment": "", "ignore": "test", "package": [], "rootPath": "test_gin1" }