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

@ -16,6 +16,6 @@ const (
ConfigNodeNameServerSecondary = "httpserver" // New version configuration item name support from v2.
// StackFilterKeyForGoFrame is the stack filtering key for all GoFrame module paths.
// Eg: .../pkg/mod/github.com/gogf/gf/v2@v2.0.0-20211011134327-54dd11f51122/debug/gdebug/gdebug_caller.go
// Eg: .../pkg/mod/github.com/gogf/gf/v3@v2.0.0-20211011134327-54dd11f51122/debug/gdebug/gdebug_caller.go
StackFilterKeyForGoFrame = "github.com/gogf/gf/"
)

View File

@ -11,7 +11,7 @@ import (
"reflect"
"time"
"github.com/gogf/gf/v2/internal/reflection"
"github.com/gogf/gf/v3/internal/reflection"
)
// iString is used for type assert api for String().

View File

@ -10,11 +10,11 @@ import (
"testing"
"time"
"github.com/gogf/gf/v2/container/gvar"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/internal/empty"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v2/util/gconv"
"github.com/gogf/gf/v3/container/gvar"
"github.com/gogf/gf/v3/frame/g"
"github.com/gogf/gf/v3/internal/empty"
"github.com/gogf/gf/v3/test/gtest"
"github.com/gogf/gf/v3/util/gconv"
)
type TestInt int

View File

@ -8,7 +8,7 @@
package errors
import (
"github.com/gogf/gf/v2/internal/command"
"github.com/gogf/gf/v3/internal/command"
)
// StackMode is the mode that printing stack information in StackModeBrief or StackModeDetail mode.

View File

@ -9,8 +9,8 @@ package errors_test
import (
"testing"
"github.com/gogf/gf/v2/internal/errors"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/internal/errors"
"github.com/gogf/gf/v3/test/gtest"
)
func Test_IsStackModeBrief(t *testing.T) {

View File

@ -11,10 +11,10 @@ import (
"net/http"
"strings"
"github.com/gogf/gf/v2/encoding/gurl"
"github.com/gogf/gf/v2/internal/empty"
"github.com/gogf/gf/v2/text/gstr"
"github.com/gogf/gf/v2/util/gconv"
"github.com/gogf/gf/v3/encoding/gurl"
"github.com/gogf/gf/v3/internal/empty"
"github.com/gogf/gf/v3/text/gstr"
"github.com/gogf/gf/v3/util/gconv"
)
const (

View File

@ -9,10 +9,10 @@ package httputil_test
import (
"testing"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/internal/httputil"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v2/text/gstr"
"github.com/gogf/gf/v3/frame/g"
"github.com/gogf/gf/v3/internal/httputil"
"github.com/gogf/gf/v3/test/gtest"
"github.com/gogf/gf/v3/text/gstr"
)
func TestBuildParams(t *testing.T) {

View File

@ -10,8 +10,8 @@
package instance
import (
"github.com/gogf/gf/v2/container/gmap"
"github.com/gogf/gf/v2/encoding/ghash"
"github.com/gogf/gf/v3/container/gmap"
"github.com/gogf/gf/v3/encoding/ghash"
)
const (

View File

@ -9,8 +9,8 @@ package instance_test
import (
"testing"
"github.com/gogf/gf/v2/internal/instance"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/internal/instance"
"github.com/gogf/gf/v3/test/gtest"
)
func Test_SetGet(t *testing.T) {

View File

@ -16,8 +16,8 @@ import (
"go.opentelemetry.io/otel/trace"
"github.com/gogf/gf/v2/debug/gdebug"
"github.com/gogf/gf/v2/internal/utils"
"github.com/gogf/gf/v3/debug/gdebug"
"github.com/gogf/gf/v3/internal/utils"
)
const (

View File

@ -12,7 +12,7 @@ import (
"encoding/json"
"io"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v3/errors/gerror"
)
// RawMessage is a raw encoded JSON value.

View File

@ -9,7 +9,7 @@ package mutex_test
import (
"testing"
"github.com/gogf/gf/v2/internal/mutex"
"github.com/gogf/gf/v3/internal/mutex"
)
var (

View File

@ -10,9 +10,9 @@ import (
"testing"
"time"
"github.com/gogf/gf/v2/container/garray"
"github.com/gogf/gf/v2/internal/mutex"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/container/garray"
"github.com/gogf/gf/v3/internal/mutex"
"github.com/gogf/gf/v3/test/gtest"
)
func TestMutexIsSafe(t *testing.T) {

View File

@ -10,8 +10,8 @@ import (
"reflect"
"testing"
"github.com/gogf/gf/v2/internal/reflection"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/internal/reflection"
"github.com/gogf/gf/v3/test/gtest"
)
func Test_OriginValueAndKind(t *testing.T) {

View File

@ -9,7 +9,7 @@ package rwmutex_test
import (
"testing"
"github.com/gogf/gf/v2/internal/rwmutex"
"github.com/gogf/gf/v3/internal/rwmutex"
)
var (

View File

@ -10,9 +10,9 @@ import (
"testing"
"time"
"github.com/gogf/gf/v2/container/garray"
"github.com/gogf/gf/v2/internal/rwmutex"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/container/garray"
"github.com/gogf/gf/v3/internal/rwmutex"
"github.com/gogf/gf/v3/test/gtest"
)
func TestRWMutexIsSafe(t *testing.T) {

View File

@ -13,9 +13,9 @@ import (
"go.opentelemetry.io/otel/trace"
"github.com/gogf/gf/v2/container/gtype"
"github.com/gogf/gf/v2/encoding/gbinary"
"github.com/gogf/gf/v2/util/grand"
"github.com/gogf/gf/v3/container/gtype"
"github.com/gogf/gf/v3/encoding/gbinary"
"github.com/gogf/gf/v3/util/grand"
)
var (

View File

@ -7,7 +7,7 @@
package utils
import (
"github.com/gogf/gf/v2/internal/command"
"github.com/gogf/gf/v3/internal/command"
)
const (

View File

@ -9,7 +9,7 @@ package utils
import (
"reflect"
"github.com/gogf/gf/v2/internal/empty"
"github.com/gogf/gf/v3/internal/empty"
)
// IsNil checks whether `value` is nil, especially for interface{} type value.

View File

@ -10,7 +10,7 @@ import (
"regexp"
"testing"
"github.com/gogf/gf/v2/internal/utils"
"github.com/gogf/gf/v3/internal/utils"
)
var (

View File

@ -9,11 +9,11 @@ package utils_test
import (
"testing"
"github.com/gogf/gf/v2/container/gvar"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/internal/utils"
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/container/gvar"
"github.com/gogf/gf/v3/frame/g"
"github.com/gogf/gf/v3/internal/utils"
"github.com/gogf/gf/v3/os/gtime"
"github.com/gogf/gf/v3/test/gtest"
)
func TestVar_IsNil(t *testing.T) {

View File

@ -12,8 +12,8 @@ import (
"testing"
"unsafe"
"github.com/gogf/gf/v2/internal/utils"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/internal/utils"
"github.com/gogf/gf/v3/test/gtest"
)
func Test_ReadCloser(t *testing.T) {