Signed is a generic type constraint for all signed integers.
| 6 | |
| 7 | // Signed is a generic type constraint for all signed integers. |
| 8 | type Signed interface { |
| 9 | ~int | ~int8 | ~int16 | ~int32 | ~int64 |
| 10 | } |
| 11 | |
| 12 | // Unsigned is a generic type constraint for all unsigned integers. |
| 13 | type Unsigned interface { |
nothing calls this directly
no outgoing calls
no test coverage detected