From: Jeremy Faller
Date: Wed, 1 Dec 2021 21:55:37 +0000 (-0500)
Subject: doc/go1.18: add docs on new reflect.Value methods
X-Git-Tag: go1.18beta1~115
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e533b5793f43ed44f1562a10d974cb3bc3688226;p=gostls13.git
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
---
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.