title: setup module url : no go-import meta tags
body: <p>Please consider this question:</p>
  <p>Based on <a href="https://golang.org/doc/tutorial/call-module-code" rel="nofollow noreferrer">https://golang.org/doc/tutorial/call-module-code</a>, I've:</p>
  <pre><code>$ cat hello.go 
  package main
  
  import (
      &quot;fmt&quot;
      &quot;example.com/greetings&quot;
  )
  
  func main() {
      // Get a greeting message and print it.
      message := greetings.Hello(&quot;Gladys&quot;)
      fmt.Println(message)
  }
  </code></pre>
  <p>and,</p>
  <pre><code>$ cat go.mod 
  module hello
  
  go 1.14
  
  replace example.com/greetings =&gt; ../greetings
  
  require example.com/greetings v0.0.0-00010101000000-000000000000
  </code></pre>
  <p>It loads the <code>greetings</code> module from my local folder, and goes its way.</p>
  <p>In real life, <code>greetings</code> is a module I use a lot, so I lug that folder around a lot so I can use my it.</p>
  <p>To avoid this, how can I setup my own URL of this folder, and use it? That is, I can copy that  folder to say, <code>https://mywebsite.com/myGoThings/greeting</code> - just a plain apache server which is open for GETs. (I do not want to use github, I'd prefer my own https endpoint.)</p>
  <p>When I try this, <code>go get mywebsite.com/myGoThings/greeting</code> complains : <code> no go-import meta tags ()</code> and quits.</p>
  <p>If this is possible, could you please show me how to accomplish this?</p>
  <p><strong>update 1</strong></p>
  <p>This is my greetings folder as in <code> mywebsite.com/myGoThings/greeting</code>:</p>
  <pre><code>$ ls greetings/
  go.mod  greetings.go  import.html
  </code></pre>
  <p>import.html:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en-us&quot;&gt;
  &lt;head&gt;
    &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;
    &lt;!-- Go Imports --&gt;
    &lt;meta name=&quot;go-import&quot; content=&quot;GOIMPORT&quot;&gt;
    &lt;meta name=&quot;go-source&quot; content=&quot;GOSOURCE&quot;&gt;
    &lt;meta http-equiv=&quot;refresh&quot; content=&quot;0; REDIRECT&quot;&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
      
  </code></pre>