针对你遇到的问题,no required module provides package github.com/gin-gonic/gin; to add it: go,这表明你的Go项目中缺少了github.com/gin-gonic/gin这个包。以下是一些解决步骤: 理解错误信息: 该错误信息表明你的项目中引用了github.com/gin-gonic/gin包,但是Go模块管理器在项目的依赖中没有找到这个包。
1.no required module provides package [going@VM-24-3-centos server]$gorun main.gomain.go:9:2: no required module providespackagegithub.com/grpc-demo/helloworld; to add it:goget github.com/grpc-demo/helloworld 解决办法:如果你使用了 go work,并且你的代码在 workspace,那么执行 go work use <...
What did you expect to see? stat main.go: no such file or directory What did you see instead? $ go build main.go no required module provides package main.go; to add it: go get main.go $ go get main.go go get main.go: arguments must be package or module paths ...
所以我有以下代码,package mainimport ( "github.com/gorilla/mux")func main() { router := mux.NewRouter()}当我运行时,它给出了以下错误 binapi.go:4:2: no required module provides package github.com/gorilla/mux; to add it: go get github.com/gorilla/mux,我该如何解决这个错误?我已经以各种...
$ sed -i 's@benchmark/parse@missing/package@g' *.go $ go build benchcmp.go:15:2: no required module provides package golang.org/x/tools/missing/package; to add it: go get golang.org/x/tools/missing/package $ go get golang.org/x/tools/missing/package ...
当前文件在包含go.mod文件的目录下面。 go mod init 项目名称go build blockchain.goblockchain.go:14:2: no required module provides package github.com/gorilla/mux; to add it:go get github.com/gorilla/mux# 执行go get github.com/gorilla/mux...
required experience, are aware of possible hazards on themselves in certain operations, and are able to take protective measures to minimize the hazards on themselves and other people ⚫ Personnel who plan to install or maintain the equipment must receive adequate training, ...
To view your new application in a browser, go to http://localhost:3000. Stop the application by using CTRL+C in the terminal window, and select y to terminate the batch job.Install the required modulesThe package.json file is one of the files created in the root of the project. This ...
self.models_module = import_module(models_module_name) File "C:\Program Files\Python37\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import ...
$ gopls check server/server.go /Users/meling/tmp/notstd/server/server.go:4:2-16: could not import notstd/proto (no required module provides package"notstd/proto") When opening the quick fix suggestions in VSCode,goplsor the Go extension suggests togo get package notstd/proto, which is ...