小白不知道怎么安装包

ss1507833718 · · 1997 次点击 · 开始浏览    置顶
这是一个创建于 的主题,其中的信息可能已经有所发展或是发生改变。

我想安装一个github.com/tuotoo/qrcode来给项目用的,百度半天还是不知道怎么装。 这也不行 [root@localhost ~]# go install github.com/tuotoo/qrcode@latest package github.com/tuotoo/qrcode is not a main package 这也不行,大佬们咋整 [root@localhost ~]# go get github.com/tuotoo/qrcode go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.

有疑问加站长微信联系(非本文作者)

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1997 次点击  
加入收藏 微博
4 回复  |  直到 2023-01-06 10:33:15
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传