honnef.co/go/tools@v0.5.0-0.dev.0.20240520180541-dcae280a5e87/staticcheck/sa1019/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.