Operator constraints in Go
last updated: Oct 20, 2023
https://blog.merovius.de/posts/2022-05-23-operator-constraints/
Let’s say you want to implement a sorting function in Go. Or perhaps a data structure like a binary search tree, providing ordered access to its elements. Because you want your code to be re-usable and type safe, you want to use type parameters. So you need a way to order user-provided types.