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

Method Before

test/playground/env.go:52–54  ·  view source on GitHub ↗
(date time.Time)

Source from the content-addressed store, hash-verified

50}
51
52func (p Post) Before(date time.Time) bool {
53 return p.PublishDate.Before(date)
54}
55
56func (p Post) Compare(other Post) int {
57 if p.PublishDate.Before(other.PublishDate) {

Callers 5

CompareMethod · 0.80
compareFunction · 0.80
WithinRangeFunction · 0.80
LessFunction · 0.80
LessOrEqualFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected