package gomod import ( "fmt" "testing" "github.com/stretchr/testify/assert" ) func TestGetTag(t *testing.T) { value, err := getCommitID("https://github.com/spf13/cobra") assert.NoError(t, err) t.Log(value) } func TestRegexp(t *testing.T) { var url = "github.com/google/go-github/v53" ower, repo := parseUrl(url) fmt.Println(ower, repo) }