Done some initial work

This commit is contained in:
Luke I. Wilson
2023-05-12 19:36:03 -05:00
parent 84dc2183ae
commit 2ca0ccc293
14 changed files with 3815 additions and 0 deletions

17
utils.go Normal file
View File

@@ -0,0 +1,17 @@
package autotrader
import "golang.org/x/exp/constraints"
func Min[T constraints.Ordered](a, b T) T {
if a < b {
return a
}
return b
}
func Max[T constraints.Ordered](a, b T) T {
if a > b {
return a
}
return b
}