golang third-party package reference error: no required module provides package : go.mod file not found in current directory or any parent directory;
Package needs to be poured in.
go get github.com/denisenkom/go-mssqldb
go get github.com/mattn/go-adodb
No response from all of them, let’s analyze what the problem is.
Command: go env
First exclude go env inside: GO111MODULE (mine is GO111MODULE=”on”, resulting in download failure)
Execute: go env -w GO111MODULE=auto
Similar Posts:
- How to Solve VS Code Install Go Plug-in Error
- [Solved] Go Language Error: cannot find module providing package github.com/
- Imageio: ‘ffmpeg-win32-v3.2.4.exe’ was not found on your computer; downloading it now.
- [xviz] ./scripts/run-kitti-example.sh Excute Error: gyp ERR! Node-gyp failed to build your package.
- Gin does not contain package github.com/gin-gonic/gin/json
- How to Solve devtools::install_github SSL/TLS connection failed
- [Solved] ImportError:attempted relative import with no known parent package
- How to Solve Centos Yum Error: No module named yum
- [Solved] Ubantu18.04 Use APT to install Go environment instruction Error
- Redis service failed to start, prompt: redis server: command not found