No, you can't. A string is not a []rune, but it can be type converted to one, so you have to type convert your interface to string, then convert to runes.
https://play.golang.com/p/GKITxGGYHZI On Wed, Dec 8, 2021 at 5:44 AM Денис Мухортов <muhortovdeni...@gmail.com> wrote: > Can i get data from interface to []rune like that: > https://play.golang.com/p/XpXTeUgL-Tn > If so, how?? > > -- > 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/92755612-a157-4cc8-b6f5-fe65610ee1d7n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/92755612-a157-4cc8-b6f5-fe65610ee1d7n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CA%2Bv29Lu8M3S4-3eKFWG2bafMcjjZeicRi_UuyN%3DawV%2B5w7B%3DCw%40mail.gmail.com.