code: func isSubpackage(rootPath, target string) bool {
  	return strings.HasSuffix(setting.WorkDir, rootPath) ||
  		strings.HasPrefix(rootPath, target)
  }
docs: // isSubpackage returns true if given package belongs to current project.