]> Cypherpunks repositories - gostls13.git/commit
reflect: allow Value.Bytes on addressable byte arrays
authorJoe Tsai <joetsai@digital-static.net>
Sat, 4 Sep 2021 20:02:09 +0000 (13:02 -0700)
committerJoseph Tsai <joetsai@digital-static.net>
Wed, 2 Mar 2022 18:06:42 +0000 (18:06 +0000)
commita5b8b56d1d05d186999e4abf1e2147b6aa203ec9
tree78a3ef01c71bcf0a173efd7087208cebee92039b
parentec4687f337465b719efdeef72b357fa0b05879bb
reflect: allow Value.Bytes on addressable byte arrays

Modify Value.Bytes to be callable addressable byte arrays.
While related, the behavior of Value.SetBytes was not modified.

Fixes #47066

Change-Id: Ic3ba4432353b8da5f33b3188e20034a33b2f6ee8
Reviewed-on: https://go-review.googlesource.com/c/go/+/357331
Trust: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Joseph Tsai <joetsai@digital-static.net>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/reflect/all_test.go
src/reflect/value.go