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

Method Equal

test/playground/env.go:65–67  ·  view source on GitHub ↗
(other Post)

Source from the content-addressed store, hash-verified

63}
64
65func (p Post) Equal(other Post) bool {
66 return p.Compare(other) == 0
67}
68
69func (p Post) IsZero() bool {
70 return p.ID == 0 && p.Title == "" && p.Content == "" && p.PublishDate.IsZero()

Callers

nothing calls this directly

Calls 1

CompareMethod · 0.95

Tested by

no test coverage detected