Golang doesn't recompile some file
<p>I just got an error:</p>
<h1>server</h1>
<p>server/server.go:73: undefined: foo.MyName</p>
<p>I didn't understand at first and I tried to change the name of my function etc..
So I created a function called MyName() which return a string which is my name..</p>
<p>But, the error just came up again.. After more than one hour, I just tried to comment all of my code in the package foo ! I wanted to say f**k that at this moment... #PS: I also comment the server.go:73 line.. and.. It compiles and totally works?!</p>
<p>I commented my code, but it seems to be still here?! So now my question is:</p>
<p>Does Golang have some problem to recompile some file?</p>
<p>#-------------------------------------</p>
<p>Workspace</p>
<pre><code>pkg

    linux_amd64

src

   algo  database_sql  github.com  golang.org  GoogleAPI  googlemaps.github.io  main  main.go  models  myDebug  router  server
</code></pre>
<p>I'm making &quot;go build main.go&quot;</p>
<p>I also read <a href="https://golang.org/doc/code.html" rel="nofollow noreferrer">How to Write Go Code</a> without find any solution...</p>
<p>Some hints?</p>