// tagWithDigest validates if image has a specific tag along with digest
tagWithDigest validates if image has a specific tag along with digest
// tagWithDigest validates if image has a specific tag along with digest
func tagWithDigest(img string) bool {
	withOutDigest := strings.Split(img, "@sha256")[0]
	if strings.Contains(withOutDigest, ":") && !strings.HasSuffix(withOutDigest, ":latest") {
		return true
	}
	return false
}
func tagWithDigest ( img string ) bool { withOutDigest := strings . Split ( img , " " ) [ 0 ] if strings . Contains ( withOutDigest , " " ) && ! strings . HasSuffix ( withOutDigest , " " ) { return true } return false }
tagWithDigest validates if image has a specific tag along with digest
tagWithDigest validates if image has a specific tag along with digest