gin-vue-admin uses go mod and the golang development tool prompts package gin-vue-admin/core is not in GOROOT

Problem Description:

windows platform:

1. Put gin-vue-admin in the gopath folder

2. Use gomod to manage the package, in the gin-vue-admin\server folder, enter go mod tidy 

3. Open the project with the golang development tool, and prompt package gin-vue-admin/core is not in GOROOT. But the exe generated with go build can run normally

 

Solution:

Just put the project in another folder, don't put it under gopath and goroot.

Guess you like

Origin blog.csdn.net/orangapple/article/details/109240510