internal/source: remove extraneous comments
It's not important whether certain patterns are part of the go command
or not.
@@ -428,7 +428,6 @@ var patterns = []struct {
re *regexp.Regexp
templates urlTemplates
}{
- // Patterns known to the go command.
{
regexp.MustCompile(`^(?P<repo>github\.com/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)`),
githubURLTemplates,
@@ -437,13 +436,6 @@ var patterns = []struct {
regexp.MustCompile(`^(?P<repo>bitbucket\.org/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)`),
bitbucketURLTemplates,
},
- // Other patterns from cmd/go/internal/get/vcs.go, that we omit:
- // hub.jazz.net it no longer exists.
- // git.apache.org now redirects to github, and serves a go-import tag.
- // git.openstack.org has been rebranded.
- // chiselapp.com has no Go packages in godoc.org.
-
- // Patterns that are not (yet) part of the go command.
{
regexp.MustCompile(`^(?P<repo>gitlab\.com/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)`),
githubURLTemplates,
@@ -457,7 +449,6 @@ var patterns = []struct {
regexp.MustCompile(`^(?P<repo>gitee\.com/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)(\.git|$)`),
githubURLTemplates,
},
-
// Patterns that match the general go command pattern, where they must have
// a ".git" repo suffix in an import path. If matching a repo URL from a meta tag,
// there is no ".git".
