equal returns true only if both signatures are exactly equal.
(r *Signature)
| 691 | |
| 692 | // equal returns true only if both signatures are exactly equal. |
| 693 | func (s *Signature) equal(r *Signature) bool { |
| 694 | if s.State != r.State || !s.CreatedBy.equal(&r.CreatedBy) || s.Locked != r.Locked || s.SleepMin != r.SleepMin || s.SleepMax != r.SleepMax { |
| 695 | return false |
| 696 | } |
| 697 | return s.Stack.equal(&r.Stack) |
| 698 | } |
| 699 | |
| 700 | // similar returns true if the two Signature are equal or almost but not quite |
| 701 | // equal. |