From 33013e8ea821629858643f24c55805f5ddf316b5 Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Tue, 27 Feb 2024 22:39:35 +0000 Subject: reflect: add Overflow methods to Type This CL adds new methods synonymous with the method of the same name in reflect.Value to reflect.Type: OverflowComplex, OverflowFloat, OverflowInt, OverflowUint. Fixes #60427 Change-Id: I7a0bb35629e59a7429820f13fcd3a6f120194bc6 GitHub-Last-Rev: 26c11bcffe0f418e7d5c37e14587e738d5d939d6 GitHub-Pull-Request: golang/go#65955 Reviewed-on: https://go-review.googlesource.com/c/go/+/567296 Auto-Submit: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI --- doc/next/6-stdlib/99-minor/reflect/60427.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 doc/next/6-stdlib/99-minor/reflect/60427.md (limited to 'doc') diff --git a/doc/next/6-stdlib/99-minor/reflect/60427.md b/doc/next/6-stdlib/99-minor/reflect/60427.md new file mode 100644 index 0000000000..92230cde1a --- /dev/null +++ b/doc/next/6-stdlib/99-minor/reflect/60427.md @@ -0,0 +1,6 @@ +The new methods synonymous with the method of the same name in [`reflect.Value`](/pkg/reflect#Value) +are added to [`reflect.Type`](/pkg/reflect#Type): +1. [`OverflowComplex`](/pkg/reflect#Type.OverflowComplex) +2. [`OverflowFloat`](/pkg/reflect#Type.OverflowFloat) +3. [`OverflowInt`](/pkg/reflect#Type.OverflowInt) +4. [`OverflowUint`](/pkg/reflect#Type.OverflowUint) -- cgit v1.2.3-54-g00ecf