Why is this not allowed? s := "hello" s[0] = 'a' // compile error: cannot assign to s[0]
https://play.golang.org/p/zyJXwhEeKPo -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a57fcacf-f6dd-424b-a405-1714abf3287fn%40googlegroups.com.