From e533b5793f43ed44f1562a10d974cb3bc3688226 Mon Sep 17 00:00:00 2001 From: Jeremy Faller Date: Wed, 1 Dec 2021 16:55:37 -0500 Subject: [PATCH] doc/go1.18: add docs on new reflect.Value methods From: https://go-review.googlesource.com/c/go/+/352131/ Updates #47694 Change-Id: I7c7811c49900049f5ef7fc906fe25d2ffd73c7b9 Reviewed-on: https://go-review.googlesource.com/c/go/+/368363 Trust: Jeremy Faller Run-TryBot: Jeremy Faller Reviewed-by: Keith Randall Reviewed-by: Fabio Falzoi Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot --- doc/go1.18.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/go1.18.html b/doc/go1.18.html index 193ee16fb6..5692a068ab 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -447,7 +447,15 @@ proposal.

- TODO: https://golang.org/cl/352131: add Value.{CanInt, CanUint, CanFloat, CanComplex} + A number of methods ( + Value.CanInt, + Value.CanUint, + Value.CanFloat, + Value.CanComplex + ) + have been added to + Value + to test if a conversion is safe.

-- 2.50.0