some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / staticcheck / testdata / src / CheckListenAddress / CheckListenAddress.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckListenAddress/CheckListenAddress.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckListenAddress/CheckListenAddress.go
deleted file mode 100644 (file)
index 4a1b04f..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-package pkg
-
-import "net/http"
-
-func fn() {
-       // Seen in actual code
-       http.ListenAndServe("localhost:8080/", nil) // want `invalid port or service name in host:port pair`
-       http.ListenAndServe("localhost", nil)       // want `invalid port or service name in host:port pair`
-       http.ListenAndServe("localhost:8080", nil)
-       http.ListenAndServe(":8080", nil)
-       http.ListenAndServe(":http", nil)
-       http.ListenAndServe("localhost:http", nil)
-       http.ListenAndServe("local_host:8080", nil)
-}