drqefnd544707688 2016-06-27 17:50
浏览 54
已采纳

在$ GOPATH之外进行销售

I have a project which is built in Node.js/Express.js. I want to start to rewrite this to go/iris framework. I don't want to re-factor everything into my $GOPATH and I want to keep it together my express / go / docker files for this project.

I tried to clone iris framework's git repo into a ./vendor subfolder, but using import "github.com/kataras/iris" importing nothing.

Is there a package manager which is

  • copying and installing packages and all of it's dependencies in my-project/vendor folder outside $GOPATH

  • it can update these import packages

  • go run/build/install outside $GOPATH

  • there's now any new files in $GOPATH src/pkg/bin folder when I working on a project, except this package manager

  • I can define dependency packages for a project like package.json file for node.js

Is there a go package manager like that?

Edit:

Running this with go command is not required.

  • 写回答

1条回答 默认 最新

  • douduoyan5943 2018-05-14 16:18
    关注

    Not possible with the current go tooling, but looks like we might get it in go 1.12 or bit later.

    Proposal accepted:

    cmd/go: modify the Go toolchain to work without GOPATH

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 麒麟V10桌面版SP1如何配置bonding
  • ¥15 Marscode IDE 如何预览新建的 HTML 文件
  • ¥15 K8S部署二进制集群过程中calico一直报错
  • ¥15 java python或者任何一种编程语言复刻一个网页
  • ¥20 如何通过代码传输视频到亚马逊平台
  • ¥15 php查询mysql数据库并显示至下拉列表中
  • ¥15 freertos下使用外部中断失效
  • ¥15 输入的char字符转为int类型,不是对应的ascall码,如何才能使之转换为对应ascall码?或者使输入的char字符可以正常与其他字符比较?
  • ¥15 devserver配置完 启动服务 无法访问static上的资源
  • ¥15 解决websocket跟c#客户端通信