This commit is contained in:
John Guo
2025-04-10 14:12:35 +08:00
parent 1534abdb05
commit 2cc4835c49
1311 changed files with 4587 additions and 4587 deletions

View File

@ -11,8 +11,8 @@ import (
"compress/gzip"
"io"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v3/errors/gerror"
"github.com/gogf/gf/v3/os/gfile"
)
// Gzip compresses `data` using gzip algorithm.

View File

@ -9,10 +9,10 @@ package gcompress_test
import (
"testing"
"github.com/gogf/gf/v2/encoding/gcompress"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/encoding/gcompress"
"github.com/gogf/gf/v3/os/gfile"
"github.com/gogf/gf/v3/os/gtime"
"github.com/gogf/gf/v3/test/gtest"
)
func Test_Gzip_UnGzip(t *testing.T) {

View File

@ -10,10 +10,10 @@ import (
"bytes"
"testing"
"github.com/gogf/gf/v2/encoding/gcompress"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/encoding/gcompress"
"github.com/gogf/gf/v3/os/gfile"
"github.com/gogf/gf/v3/os/gtime"
"github.com/gogf/gf/v3/test/gtest"
)
func Test_ZipPath(t *testing.T) {

View File

@ -9,8 +9,8 @@ package gcompress_test
import (
"testing"
"github.com/gogf/gf/v2/encoding/gcompress"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/encoding/gcompress"
"github.com/gogf/gf/v3/test/gtest"
)
func Test_Zlib_UnZlib(t *testing.T) {

View File

@ -15,10 +15,10 @@ import (
"path/filepath"
"strings"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/internal/intlog"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/text/gstr"
"github.com/gogf/gf/v3/errors/gerror"
"github.com/gogf/gf/v3/internal/intlog"
"github.com/gogf/gf/v3/os/gfile"
"github.com/gogf/gf/v3/text/gstr"
)
// ZipPath compresses `fileOrFolderPaths` to `dstFilePath` using zip compressing algorithm.

View File

@ -12,7 +12,7 @@ import (
"compress/zlib"
"io"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v3/errors/gerror"
)
// Zlib compresses `data` with zlib algorithm.