[VSCode] Golang No definition found
I have been using VS Code to develop Golang program for few years, and recently the issue “no definition found” bothered me a lot. At the beginning, the issue only happens in the mixed project where the go.mod is in the sub-directory under the root path. With this case, I still can use navigation feature to jump the editor among struct definition, function implementation or packages by opening the go.mod path as the root directory with VS Code. However, it even does not work in this way, which pushes me to solve the problem completely. ...