Documentation
¶
Overview ¶
Package add provides utility to add two numbers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add[T Number](a, b T) T
Add function takes two numbers, adds them and return the result. Refer: https://www.mathsisfun.com/numbers/addition.html
Types ¶
type Number ¶
type Number interface { constraints.Integer | constraints.Float }
Click to show internal directories.
Click to hide internal directories.