honnef.co/go/tools@v0.5.0-0.dev.0.20240520180541-dcae280a5e87/staticcheck/sa1007/testdata/src/example.com/CheckURLs/CheckURLs.go (about) 1 package pkg 2 3 import "net/url" 4 5 func fn() { 6 url.Parse("foobar") 7 url.Parse(":") //@ diag(`is not a valid URL`) 8 url.Parse("https://golang.org") 9 }