Not yet, but probably an go 1.17: https://github.com/golang/go/issues/395
On Mon, Feb 1, 2021 at 1:38 PM Amit Lavon <amitlav...@gmail.com> wrote: > I know it's possible to create a slice variable from an array with the [:] > syntax, and it points to the same underlying buffer. > Can one do the opposite? Given a slice, create an array variable based on > the same buffer? > > Amit > > -- > 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/a469ec42-4197-4763-a155-ad64190ac996n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/a469ec42-4197-4763-a155-ad64190ac996n%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/CAEkBMfGDfO4eJKsksg%2B9ZnerK9Log2dN9sj0kno0BD9y7Y4GZw%40mail.gmail.com.