func CheckInternalVisibility(rel, visibility string) string {
	if i := strings.LastIndex(rel, "/internal/"); i >= 0 {
		visibility = fmt.Sprintf("//%s:__subpackages__", rel[:i])
	} else if strings.HasPrefix(rel, "internal/") {
		visibility = "//:__subpackages__"
	}
	return visibility
}
func CheckInternalVisibility(rel, visibility string) string {
	if i := strings.LastIndex(rel, "/internal/"); i >= 0 {
		visibility = fmt.Sprintf("
	} else if strings.HasPrefix(rel, "internal/") {
		visibility = "
	}
	return visibility
}
func CheckInternalVisibility ( rel , visibility string ) string { if i := strings . LastIndex ( rel , " " ) ; i >= 0 { visibility = fmt . Sprintf ( " " , rel [ : i ] ) } else if strings . HasPrefix ( rel , " " ) { visibility = " " } return visibility }
// CheckInternalVisibility overrides the given visibility if the package is
// internal.
CheckInternalVisibility overrides the given visibility if the package is internal .