ted/ui/utils.go

13 lines
181 B
Go
Raw Normal View History

// Various utilities
package ui
// Returns the maximum value of either x or y.
func intMax(x, y int) int {
if (x < y) {
return y
} else {
return x
}
}