From 9503b80d57025f3f5453010bd233dbe0133e38c7 Mon Sep 17 00:00:00 2001 From: jroam Date: Tue, 16 Apr 2019 23:07:53 +0800 Subject: [PATCH] edit tempdir --- g/os/gfile/gfile_contents_test.go | 1 + go.mod | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/g/os/gfile/gfile_contents_test.go b/g/os/gfile/gfile_contents_test.go index 0dd0b4a9d..5e7ec8260 100644 --- a/g/os/gfile/gfile_contents_test.go +++ b/g/os/gfile/gfile_contents_test.go @@ -47,6 +47,7 @@ func formatpath(paths string) string { // 指定返回要测试的目录 func testpath() string { + return os.TempDir() psths, err := filepath.Abs("./") if err != nil { return os.TempDir() diff --git a/go.mod b/go.mod index fd3232e72..081d99cd0 100644 --- a/go.mod +++ b/go.mod @@ -1 +1,3 @@ -module github.com/gogf/gf \ No newline at end of file +module github.com/gogf/gf + +go 1.12