honnef.co/go/tools@v0.5.0-0.dev.0.20240520180541-dcae280a5e87/quickfix/qf1009/testdata/src/example.com/CheckTimeEquality/CheckTimeEquality.go.golden (about) 1 package pkg 2 3 import "time" 4 5 func foo() time.Time { return time.Time{} } 6 func bar() time.Time { return time.Time{} } 7 8 func fn() { 9 var t1, t2 time.Time 10 if t1.Equal(t2) { //@ diag(`probably want to use time.Time.Equal instead`) 11 } 12 13 if foo().Equal(bar()) { //@ diag(`probably want to use time.Time.Equal instead`) 14 } 15 }