gopls requires a module at the root of your workspace. You can work with multiple modules by opening each one as a workspace folder. Improvements to this workflow will be coming soon (https://github.com/golang/go/issues/32394), and you can learn more here: https://github.com/golang/go/issues/36899.
https://stackoverflow.com/questions/66962981/golang-showing-gopls-require-a-module-issue-whenever-i-try-to-add-main-packag April 06, 2021 at 01:08PM
没有评论:
发表评论