
成都创新互联公司是一家专注于做网站、网站建设与策划设计,屯留网站建设哪家好?成都创新互联公司做网站,专注于网站建设10年,网设计领域的专业建站公司;建站业务涵盖:屯留等地区。屯留做网站价格咨询:028-86922220
func Pwd() string
func ExamplePwd() {
	// Get absolute path of current working directory.
	fmt.Println(gfile.Pwd())
	// May Output:
	// xxx/gf/os/gfile
}
func Home(names ...string) (string, error) 
func ExampleHome() {
	// user's home directory
	homePath, _ := gfile.Home()
	fmt.Println(homePath)
	// May Output:
	// C:\Users\hailaz
}
func TempDir(names ...string) string
func ExampleTempDir() {
	// init
	var (
		fileName = "gfile_example_basic_dir"
	)
	// fetch an absolute representation of path.
	path := gfile.TempDir(fileName)
	fmt.Println(path)
	// Output:
	// /tmp/gfile_example_basic_dir
}
func SelfPath() string 
func ExampleSelfPath() {
	// Get absolute file path of current running process
	fmt.Println(gfile.SelfPath())
	// May Output:
	// xxx/___github_com_GOgf_gf_v2_os_gfile__ExampleSelfPath
}
            
                新闻标题:创新互联GoFrame教程:GoFramegfile-常用目录
                
                分享URL:http://www.csdahua.cn/qtweb/news4/139954.html
            
网站建设、网络推广公司-快上网,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 快上网