I want to replace nth char from in the original string, I can access nth char from string by using chars[i], but when I assign value to chars[i] it giving error.
package main
import "fmt"
func main() {
var chars = "abcdef"
fmt.Println(string(chars[3]))
chars[3] = "z" // is not working,
}