摘要: package main import ( "fmt" "os" ) func main() { //获取 go 工作目录 var home string = os.Getenv("GOROOT") fmt.Printf("GO 工作目录是 %s\n",home) //获取 go 项目目录 path 阅读全文
posted @ 2022-03-17 17:49 公博义 阅读(515) 评论(0) 推荐(0) 编辑