.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.1.1 / staticcheck / testdata / src / CheckDeprecated_go13 / CheckDeprecated.go
1 package pkg
2
3 import (
4         "crypto/x509"
5         "net/http/httputil"
6         "path/filepath"
7 )
8
9 func fn() {
10         filepath.HasPrefix("", "")               // want `filepath.HasPrefix has been deprecated since Go 1.0 because it shouldn't be used:`
11         _ = httputil.ErrPersistEOF               // want `httputil.ErrPersistEOF has been deprecated since Go 1.0:`
12         _ = httputil.ServerConn{}                // want `httputil.ServerConn has been deprecated since Go 1.0:`
13         _ = x509.CertificateRequest{}.Attributes // want `x509.CertificateRequest{}.Attributes has been deprecated since Go 1.5 and an alternative has been available since Go 1.3:`
14 }