func (c GoURLResolver) ResolveGitHubURL(name string) (url.URL, error) {
	if strings.HasPrefix(name, "github.com/") {
		return resolvePointerURL(url.Parse("https://" + normalizeGitURLPath(name)))
	}
	resp, err := c.fetchData(name)
	if err != nil {
		return url.URL{}, fmt.Errorf("can not make GET to Go module name: %w", err)
	}
	gitURL, err := parseResponse(resp)
	if err != nil {
		return url.URL{}, fmt.Errorf("can not parse response: %w", err)
	}
	if gitURL.Host != "github.com" {
		return url.URL{}, fmt.Errorf("git is not on GitHub: %v", gitURL)
	}
	return *gitURL, nil
}
ResolveGitHubURL finds GitHub URL
package gourlresolver
import (
	"bytes"
	"errors"
	"fmt"
	"net/http"
	"net/url"
	"strings"
)
type GoURLResolver struct {
	HTTPClient *http.Client
}