import (
	"fmt"
	"io/ioutil"
)

func readDir(dirPath string) {
	str := []string{}
	files, err := ioutil.ReadDir(dirPath)
	if err != nil {
		fmt.Println("文件打开失败")
	}
	for _, v := range files {
		if v.IsDir() {
			str = append(str, "<"+v.Name()+">")
		} else {
			str = append(str, v.Name())
		}
	}
	fmt.Println(str)
}