Glossary: Algorithms Beyond the Basics in Go
cmp.Compare
Also written: Compare
A Go function that returns a negative number, zero or a positive number depending on how two values order. It is used inside sort functions.
Glossary: Algorithms Beyond the Basics in Go
Also written: Compare
A Go function that returns a negative number, zero or a positive number depending on how two values order. It is used inside sort functions.