Files
go-easy-utils/mathUtil/abs_example_test.go
T
jeffery f97913a2bc Feature/math util (#22)
Development supports the math package
2023-04-12 11:10:07 +08:00

16 lines
151 B
Go

package mathUtil
import "fmt"
func ExampleAbs() {
res1 := Abs(-6)
res2 := Abs(9)
fmt.Println(res1)
fmt.Println(res2)
// Output:
// 6
// 9
}