Files
lo/docs/data/core-min.md
T
Samuel Berthe fa095e4b4f fix(doc): fix go playground demo URL (#832)
* fix(doc): fix go playground demo URL

* fix(doc): add more go playground demo URL
2026-03-06 00:09:59 +01:00

552 B

name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
name slug sourceRef category subCategory playUrl variantHelpers similarHelpers position signatures
Min min find.go#L265 core find https://go.dev/play/p/fJFLwpY8eMN
core#find#min
core#find#minby
core#find#minindex
core#find#minindexby
core#find#max
core#find#maxby
core#find#maxindex
core#find#maxindexby
140
func Min[T constraints.Ordered](collection []T) T

Returns the minimum value of a collection. Returns the zero value when the collection is empty.

lo.Min([]int{1, 2, 3})
// 1