title: How to set go module path of private repository
body: <p>I want to set my go module path to <code>example.com/myrepo</code> instead of <code>github.com/myusername/myrepo</code> such that I am able to import in inside another repository.</p>
  
  <p>for example, if my go.mod looks like this</p>
  
  <pre><code>module example.com/myrepo
  
  go 1.13
  </code></pre>
  
  <p>how will I make <code>go get example.com/myrepo</code> work?</p>
  
  <p>I am getting the following on <code>go get example.com/myrepo</code> </p>
  
  <pre class="lang-sh prettyprint-override"><code>unrecognized import path "example.com/myrepo" (parse https://example.com/myrepo?go-get=1: no go-import meta tags ())
  </code></pre>
  
  <p>Given I am the owner of <code>example.com</code> how can I do this?</p>