How to replace nth char from a string in Go
<p>I want to replace the nth char in the original string. I can access the nth char from the string by using <code>chars[i]</code>, but when I assign a value to <code>chars[i]</code>, I get an error. </p>

<pre><code>package main
import "fmt"

func main() {
  var chars = "abcdef"
  fmt.Println(string(chars[3]))
  chars[3] = "z" // is not working
}
</code></pre>