func BehaviorFileList(dir string) ([]string, error) {
	var behaviorFiles []string

	r, _ := regexp.Compile(".+.yaml$")
	err := filepath.Walk(dir,
		func(path string, info os.FileInfo, err error) error {
			if err != nil {
				return err
			}
			if r.MatchString(path) {
				behaviorFiles = append(behaviorFiles, path)
			}
			return nil
		},
	)
	return behaviorFiles, err
}
// BehaviorFileList returns a list of eligible behavior files in or under dir
BehaviorFileList returns a list of eligible behavior files in or under dir
// BehaviorFileList returns a list of eligible behavior files in or under dir
func BehaviorFileList(dir string) ([]string, error) {
	var behaviorFiles []string
	r, _ := regexp.Compile(".+.yaml$")
	err := filepath.Walk(dir,
		func(path string, info os.FileInfo, err error) error {
			if err != nil {
				return err
			}
			if r.MatchString(path) {
				behaviorFiles = append(behaviorFiles, path)
			}
			return nil
		},
	)
	return behaviorFiles, err
}
func BehaviorFileList ( dir string ) ( [ ] string , error ) { var behaviorFiles [ ] string r , _ := regexp . Compile ( " " ) err := filepath . Walk ( dir , func ( path string , info os . FileInfo , err error ) error { if err != nil { return err } if r . MatchString ( path ) { behaviorFiles = append ( behaviorFiles , path ) } return nil } , ) return behaviorFiles , err }
BehaviorFileList returns a list of eligible behavior files in or under dir
BehaviorFileList returns a list of eligible behavior files in or under dir