Ordered is a generic type constraint for all ordered data types in Go. Loosely speaking, in mathematics a field is an ordered field if there is a "total order" (a binary relation - in this case `<` symbol) such that we will always have if a < b then a + c < b + c and if 0 < a, 0 < b then 0 < a.b The
| 36 | // The idea in Go is quite similar, though only limited to Go standard types |
| 37 | // not user defined types. |
| 38 | type Ordered interface { |
| 39 | Integer | ~string | Float |
| 40 | } |
nothing calls this directly
no outgoing calls
no test coverage detected