/**
 * Package Root Detector
 */
Package Root Detector
/ ** * Package Root Detector * /
func IsTrackingImpl(pkg, detector string) (bool, error) {
	for true {
		tracking, err := isDirTracked(pkg, detector)
		if err != nil {
			return false, err
		}
		if tracking {
			return true, nil
		} else {
			slashIndex := strings.LastIndex(pkg, "/")
			if slashIndex == -1 {
				return false, nil
			}
			pkg = pkg[0:slashIndex]
		}
	}
	return false, nil
}
func IsTrackingImpl ( pkg , detector string ) ( bool , error ) { for true { tracking , err := isDirTracked ( pkg , detector ) if err != nil { return false , err } if tracking { return true , nil } else { slashIndex := strings . LastIndex ( pkg , " " ) if slashIndex == - 1 { return false , nil } pkg = pkg [ 0 : slashIndex ] } } return false , nil }
Package Root Detector
Package Root Detector