
Basics
Min Max and Clear Builtins Arrived in Go 1.21 Explained
The min and max builtins compare any ordered values and clear empties a map or zeroes a slice. See clamping, the NaN case and the go.mod version rule.
4 min read
Tag
1 article

The min and max builtins compare any ordered values and clear empties a map or zeroes a slice. See clamping, the NaN case and the go.mod version rule.