package main
import (
"fmt"
"io/ioutil"
"log"
)
func loop(folder string){
files, err := ioutil.ReadDir(folder)
if err != nil {
log.Fatal(err)
}
for _, f := range files {
if f.IsDir() {
loop(f.Name())
}
fmt.Println(f.Name())
}
}
func main() {
loop(".")
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…