mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-29 21:27:05 +02:00
Replaced util Min/Max functions with builtin
This commit is contained in:
parent
357932f9b0
commit
bcc7bf3167
5 changed files with 4 additions and 34 deletions
|
@ -23,18 +23,6 @@ import (
|
|||
"go.uploadedlobster.com/scotty/internal/util"
|
||||
)
|
||||
|
||||
func ExampleMax() {
|
||||
v := util.Max(2, 5)
|
||||
fmt.Print(v)
|
||||
// Output: 5
|
||||
}
|
||||
|
||||
func ExampleMin() {
|
||||
v := util.Min(2, 5)
|
||||
fmt.Print(v)
|
||||
// Output: 2
|
||||
}
|
||||
|
||||
func ExampleSum() {
|
||||
values := []float64{1.4, 2.2}
|
||||
sum := util.Sum(values...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue