Numbers defines the generic constraints of the arithmetic arguments.
| 35 | |
| 36 | // Numbers defines the generic constraints of the arithmetic arguments. |
| 37 | type Numbers interface { |
| 38 | constraints.Integer | constraints.Float | constraints.Complex |
| 39 | } |
| 40 | |
| 41 | // Add adds the given numbers. |
| 42 | func Add[T Numbers](i1 T, in ...T) T { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…