.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
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/staticcheck/testdata/src/CheckDeprecated_go13/CheckDeprecated.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/staticcheck/testdata/src/CheckDeprecated_go13/CheckDeprecated.go
new file mode 100644 (file)
index 0000000..4558ef1
--- /dev/null
@@ -0,0 +1,14 @@
+package pkg
+
+import (
+       "crypto/x509"
+       "net/http/httputil"
+       "path/filepath"
+)
+
+func fn() {
+       filepath.HasPrefix("", "")               // want `filepath.HasPrefix has been deprecated since Go 1.0 because it shouldn't be used:`
+       _ = httputil.ErrPersistEOF               // want `httputil.ErrPersistEOF has been deprecated since Go 1.0:`
+       _ = httputil.ServerConn{}                // want `httputil.ServerConn has been deprecated since Go 1.0:`
+       _ = x509.CertificateRequest{}.Attributes // want `x509.CertificateRequest{}.Attributes has been deprecated since Go 1.5 and an alternative has been available since Go 1.3:`
+}