MCPcopy Index your code
hub / github.com/expr-lang/expr / Less

Function Less

vm/runtime/helpers[generated].go:702–1045  ·  view source on GitHub ↗
(a, b interface{})

Source from the content-addressed store, hash-verified

700}
701
702func Less(a, b interface{}) bool {
703 switch x := a.(type) {
704 case uint:
705 switch y := b.(type) {
706 case uint:
707 return int(x) < int(y)
708 case uint8:
709 return int(x) < int(y)
710 case uint16:
711 return int(x) < int(y)
712 case uint32:
713 return int(x) < int(y)
714 case uint64:
715 return int(x) < int(y)
716 case int:
717 return int(x) < int(y)
718 case int8:
719 return int(x) < int(y)
720 case int16:
721 return int(x) < int(y)
722 case int32:
723 return int(x) < int(y)
724 case int64:
725 return int(x) < int(y)
726 case float32:
727 return float64(x) < float64(y)
728 case float64:
729 return float64(x) < float64(y)
730 }
731 case uint8:
732 switch y := b.(type) {
733 case uint:
734 return int(x) < int(y)
735 case uint8:
736 return int(x) < int(y)
737 case uint16:
738 return int(x) < int(y)
739 case uint32:
740 return int(x) < int(y)
741 case uint64:
742 return int(x) < int(y)
743 case int:
744 return int(x) < int(y)
745 case int8:
746 return int(x) < int(y)
747 case int16:
748 return int(x) < int(y)
749 case int32:
750 return int(x) < int(y)
751 case int64:
752 return int(x) < int(y)
753 case float32:
754 return float64(x) < float64(y)
755 case float64:
756 return float64(x) < float64(y)
757 }
758 case uint16:
759 switch y := b.(type) {

Callers 3

RunMethod · 0.92
LessMethod · 0.70
LessMethod · 0.70

Calls 2

BeforeMethod · 0.80
SprintfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…