INNER CODE UNIT · Go
MoreOrEqual
expr-lang/expr · vm/runtime/helpers/main.go:247
func MoreOrEqual(a, b interface{}) bool {
switch x := a.(type) {
{{ cases ">=" }}
case string:
switch y := b.(type) {
case string:
return x >= y
}
case time.Time:
switch y := b.(type) {
case time.Time:
return x.After(y) || x.Equal(y)
}
case time.Duration:
switch y := b.(type) {
case time.Duration:
return x >= y
}