func (s *Seekret) LoadRulesFromPath(path string, defaulEnabled bool) error {
	if path == "" {
		path = DefaultRulesPath()
	}
	dirList := strings.Split(path, ":")
	for _, dir := range dirList {
		err := s.LoadRulesFromDir(dir, defaulEnabled)
		if err != nil {
			return err
		}
	}
	return nil
}
func (s *Seekret) LoadRulesFromPath(path string, defaulEnabled bool) error {
	if path == "" {
		path = DefaultRulesPath()
	}
	dirList := strings.Split(path, ":")
	for _, dir := range dirList {
		err := s.LoadRulesFromDir(dir, defaulEnabled)
		if err != nil {
			return err
		}
	}
	return nil
}
func ( s * Seekret ) LoadRulesFromPath ( path string , defaulEnabled bool ) error { if path == " " { path = DefaultRulesPath ( ) } dirList := strings . Split ( path , " " ) for _ , dir := range dirList { err := s . LoadRulesFromDir ( dir , defaulEnabled ) if err != nil { return err } } return nil }
// LoadRulesFromFile loads rules from all YAML files inside different
// directories separated by ':'.
LoadRulesFromFile loads rules from all YAML files inside different directories separated by : .