摘要:
一、获取当前目录下的文件或目录信息(不包含多级子目录) package main import ( "fmt" "io/ioutil" "log" "os" ) func main() { pwd, _ := os.Getwd() //获取文件或目录相关信息 fileInfoList, err :=
阅读全文
posted @ 2020-07-31 15:56
清明-心若淡定
阅读(5260)
推荐(0)
编辑
摘要:
Demo0: package main import ( "fmt" "flag" ) func main() { t1 := flag.Int("w",0,"demo test") t2 := flag.String("a","Hello","demo test") flag.Parse() fm
阅读全文
posted @ 2020-07-31 09:54
清明-心若淡定
阅读(205)
推荐(0)
编辑