]> Cypherpunks repositories - gostls13.git/commit
reflect: allow Copy to a byte array or byte slice from a string
authorTim Cooper <tim.cooper@layeh.com>
Thu, 12 Oct 2017 20:42:18 +0000 (17:42 -0300)
committerIan Lance Taylor <iant@golang.org>
Fri, 13 Oct 2017 02:35:56 +0000 (02:35 +0000)
commit245e386e4c56d3d92843b390871d763392fad26a
treeca9539ddc9d665b600b483b579634612d9bbfd33
parentc14dcfda6b5dbe8f4dfa21ccc02c569567e9da54
reflect: allow Copy to a byte array or byte slice from a string

This somewhat mirrors the special case behavior of the copy built-in.

Fixes #22215

Change-Id: Ic353003ad3de659d3a6b4e9d97295b42510f3bf7
Reviewed-on: https://go-review.googlesource.com/70431
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/reflect/all_test.go
src/reflect/value.go