Why do 2 time structs with the same date and time return false when compared with ==?
time.Time is a struct. When you try to compare them with ==, quoting from the Spec: Comparison operator: Struct values are comparable if all their fields are comparable. Two struct values are equal if their corresponding non-blank fields are equal. So t1 == t2 will compare all the fields of the 2 Time struct values. … Read more