package gomod import ( "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) }