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