package main
 
import (
	"os"
	"io/ioutil"
	"log"
	"fmt"
	"path/filepath"
)
 
func main() {
	pwd,_ := os.Getwd()
	
	//获取当前目录下的文件或目录名(包含路径)
	filepathNames,err := filepath.Glob(filepath.Join(pwd,"*"))
	if err != nil {
		log.Fatal(err)
	}
 
	for i := range filepathNames {
		fmt.Println(filepathNames[i]) //打印path
	}
 
}