@@ -18,47 +18,53 @@ package integer
18
18
19
19
import "math"
20
20
21
- // IntMax returns the maximum of the params
21
+ // IntMax returns the maximum of the params.
22
+ // Deprecated: for new code, use the max() builtin instead.
22
23
func IntMax (a , b int ) int {
23
24
if b > a {
24
25
return b
25
26
}
26
27
return a
27
28
}
28
29
29
- // IntMin returns the minimum of the params
30
+ // IntMin returns the minimum of the params.
31
+ // Deprecated: for new code, use the min() builtin instead.
30
32
func IntMin (a , b int ) int {
31
33
if b < a {
32
34
return b
33
35
}
34
36
return a
35
37
}
36
38
37
- // Int32Max returns the maximum of the params
39
+ // Int32Max returns the maximum of the params.
40
+ // Deprecated: for new code, use the max() builtin instead.
38
41
func Int32Max (a , b int32 ) int32 {
39
42
if b > a {
40
43
return b
41
44
}
42
45
return a
43
46
}
44
47
45
- // Int32Min returns the minimum of the params
48
+ // Int32Min returns the minimum of the params.
49
+ // Deprecated: for new code, use the min() builtin instead.
46
50
func Int32Min (a , b int32 ) int32 {
47
51
if b < a {
48
52
return b
49
53
}
50
54
return a
51
55
}
52
56
53
- // Int64Max returns the maximum of the params
57
+ // Int64Max returns the maximum of the params.
58
+ // Deprecated: for new code, use the max() builtin instead.
54
59
func Int64Max (a , b int64 ) int64 {
55
60
if b > a {
56
61
return b
57
62
}
58
63
return a
59
64
}
60
65
61
- // Int64Min returns the minimum of the params
66
+ // Int64Min returns the minimum of the params.
67
+ // Deprecated: for new code, use the min() builtin instead.
62
68
func Int64Min (a , b int64 ) int64 {
63
69
if b < a {
64
70
return b
0 commit comments