string replace backslash with slash
<p>I need to replace <code>\</code> with <code>/</code> in a path string, but following code failed.</p>

<pre><code>package main

import (
    "fmt"
    "strings"
)

func main() {
    string := "P:\Project\project-name/content/topic/"
    fmt.Println(strings.Replace(string, "\\", "/", -1))
}
</code></pre>

<p>Any helpful suggestions?</p>