How to overwrite a symlink in Go?
<p>I would like to overwrite a symlink using Go but I couldn't find how to do it.</p>

<p>If I try to create the symlink and it already exists an error is returned.</p>

<p>My code:</p>

<pre><code>err := os.Symlink(filePath, symlinkPath)
if err != nil {
    fmt.Println(err)
}
</code></pre>

<p>I guess the symlink must be removed and then created again. Is that right? If so, how can I unlink the symlink?</p>