mirror of
https://github.com/jefferyjob/go-easy-utils.git
synced 2026-04-23 00:07:09 +08:00
f97913a2bc
Development supports the math package
16 lines
151 B
Go
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
|
|
}
|