[go-nuts] Re: Go string and UTF-8

2019-08-20 Thread Pierre Durand
OK, thank you ! Le mardi 20 août 2019 10:34:55 UTC+2, djeg...@gmail.com a écrit : > > On Tue, Aug 20, 2019 at 10:12 AM Pierre Durand wrote: > > > > I know that by convention Go string contain UTF-8 encoded text. > > To my understanding this is not entirely true -- see > https://blog.golang.org/st

[go-nuts] Re: Go string and UTF-8

2019-08-20 Thread djego . joss
On Tue, Aug 20, 2019 at 10:12 AM Pierre Durand wrote: > > I know that by convention Go string contain UTF-8 encoded text. To my understanding this is not entirely true -- see https://blog.golang.org/strings#TOC_2. -- It is simply a readonly slice of bytes. However there is at least 2 places wher