this post was submitted on 25 Sep 2023
4 points (62.5% liked)

Golang

2214 readers
1 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 1 year ago
MODERATORS
 

Did I break a taboo by doing this?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (1 children)

Oh right! What am I saying? contraints.Ordered maybe.

[–] [email protected] 1 points 1 year ago

I just looked at the standard docs and I didn't realize there was a built-in min and max function. Y'all should really read the standard lib docs.. it's fascinating in there.