title: Golang VSCode configuration best setup
body: <p>I wonder if someone can share their best setup for Golang using Vscode on Mac. As I am continously having issues such as:</p>
  
  <ol>
  <li>sometimes gomft doesn't work.</li>
  <li>Functions defined in the same package shows with a red underline warning saying it's not defined (but works when running it)</li>
  <li>having the following message popped up </li>
  </ol>
  
  <p><code>Your workspace is misconfigured: command-line-arguments has no metadata. Please see https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md for more information or file an issue (https://github.com/golang/go/issues/new) if you believe this is a mistake.</code></p>
  
  <p>Here are some information of my go setup:</p>
  
  <ul>
  <li>Version: go1.13.4 darwin/amd64</li>
  <li>Settings in 'settings.json':</li>
  </ul>
  
  <pre><code>
      {
          "window.zoomLevel": 1,
          "workbench.iconTheme": "material-icon-theme",
          "editor.accessibilitySupport": "off",
          "go.useLanguageServer": true,
          "go.formatTool": "gofmt",
          "go.lintTool": "golangci-lint",
          "[go]": {
              "editor.formatOnSave": true,
              "editor.codeActionsOnSave": {
                  "source.organizeImports": true
              },
          },
          "explorer.confirmDragAndDrop": false,
          "javascript.updateImportsOnFileMove.enabled": "always",
          "diffEditor.ignoreTrimWhitespace": false
      }
  
  </code></pre>
  
  <ul>
  <li>GOPATH is pointing to the folder where Go is installed</li>
  </ul>