gitee.com/wgliang/goreporter@v0.0.0-20180902115603-df1b20f7c5d0/linters/simplecode/testdata/time-since.go (about) 1 package pkg 2 3 import "time" 4 5 func fn() { 6 t1 := time.Now() 7 _ = time.Now().Sub(t1) // MATCH "time.Since" 8 _ = time.Date(0, 0, 0, 0, 0, 0, 0, nil).Sub(t1) 9 }