Re: [go-nuts] How to cast a multi-value?

2021-05-18 Thread 'Marc Michael' via golang-nuts
s still using additional variables, but they are hidden inside the > helper function. > On Sunday, May 16, 2021 at 8:07:24 PM UTC-7 Kurtis Rader wrote: > >> On Sun, May 16, 2021 at 7:49 PM 'Marc Michael' via golang-nuts < >> golan...@googlegroups.com> wrote: >> >&

[go-nuts] How to cast a multi-value?

2021-05-16 Thread 'Marc Michael' via golang-nuts
Hello, as Go provides multi values I would expect that's possible to cast such a multi value. Do I see it correctly, that Go does not provide it? Example: os.ReadFile returns []byte, error. I want to cast the []byte to a string. content, err := os.ReadFile(path) Is it possible to cast the