-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 26c11bc GitHub-Pull-Request: #65955 Reviewed-on: https://go-review.googlesource.com/c/go/+/567296 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
- Loading branch information
1 parent
1571c0b
commit 33013e8
Showing
4 changed files
with
118 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pkg reflect, type Type interface, OverflowComplex(complex128) bool #60427 | ||
pkg reflect, type Type interface, OverflowFloat(float64) bool #60427 | ||
pkg reflect, type Type interface, OverflowInt(int64) bool #60427 | ||
pkg reflect, type Type interface, OverflowUint(uint64) bool #60427 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters