title: Error message "go: go.mod file not found in current directory or any parent directory; see 'go help modules'"
body: <p>I just updated to the new version of Go - Go version 1.16.2 Linux/amd64 and am getting an error when I build a <a href="https://tour.golang.org/welcome/1" rel="noreferrer">Hello, World! example</a>:</p>
  <blockquote>
  <p>go: go.mod file not found in current directory or any parent directory; see 'go help modules'</p>
  </blockquote>
  <p>Even when I follow the fix from <a href="https://stackoverflow.com/questions/66740187/errors-running-first-go-project-on-local-machine">that post</a> it isn't working. I set these variables and then build again:</p>
  <pre class="lang-none prettyprint-override"><code>GO111MODULE=on
  GOPROXY=https://proxy.golang.org,direct
  </code></pre>
  <p>And the same problem unfortunately.</p>