honnef.co/go/tools@v0.4.7/staticcheck/testdata/src/example.com/CheckDeprecated_go119/CheckDeprecated.go (about)

     1  //go:build go1.19
     2  
     3  package pkg
     4  
     5  import _ "io/ioutil" //@ diag("has been deprecated")
     6  
     7  // We test this in Go 1.19 even though io/ioutil has technically been deprecated since Go 1.16, because only in Go 1.19
     8  // was the proper deprecation marker added.