github.com/serversong/goreporter@v0.0.0-20200325104552-3cfaf44fd178/linters/staticcheck/testdata/CheckTimeParse.go (about)

     1  package pkg
     2  
     3  import "time"
     4  
     5  const c1 = "12345"
     6  const c2 = "2006"
     7  
     8  func fn() {
     9  	time.Parse("12345", "") // MATCH /parsing time/
    10  	time.Parse(c1, "")      // MATCH /parsing time/
    11  	time.Parse(c2, "")
    12  	time.Parse(time.RFC3339Nano, "")
    13  	time.Parse(time.Kitchen, "")
    14  }