github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/staticcheck/testdata/src/CheckTimeParse/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  }