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

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

View File

@ -12,7 +12,7 @@
package gerror
import (
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v3/errors/gcode"
)
// IEqual is the interface for Equal feature.

View File

@ -9,7 +9,7 @@ package gerror
import (
"fmt"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v3/errors/gcode"
)
// New creates and returns an error which is formatted from given text.

View File

@ -10,7 +10,7 @@ import (
"fmt"
"strings"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v3/errors/gcode"
)
// NewCode creates and returns an error that has error code and given text.

View File

@ -6,7 +6,7 @@
package gerror
import "github.com/gogf/gf/v2/errors/gcode"
import "github.com/gogf/gf/v3/errors/gcode"
// Option is option for creating error.
type Option struct {

View File

@ -12,7 +12,7 @@ import (
"runtime"
"strings"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v3/errors/gcode"
)
// Error is custom error for additional features.

View File

@ -7,7 +7,7 @@
package gerror
import (
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v3/errors/gcode"
)
// Code returns the error code.

View File

@ -13,8 +13,8 @@ import (
"runtime"
"strings"
"github.com/gogf/gf/v2/internal/consts"
"github.com/gogf/gf/v2/internal/errors"
"github.com/gogf/gf/v3/internal/consts"
"github.com/gogf/gf/v3/internal/errors"
)
// stackInfo manages stack info of certain error.

View File

@ -10,8 +10,8 @@ import (
"errors"
"testing"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v3/errors/gcode"
"github.com/gogf/gf/v3/errors/gerror"
)
var (

View File

@ -10,8 +10,8 @@ import (
"errors"
"fmt"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v3/errors/gcode"
"github.com/gogf/gf/v3/errors/gerror"
)
func ExampleNewCode() {

View File

@ -11,10 +11,10 @@ import (
"fmt"
"testing"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/internal/json"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v3/errors/gcode"
"github.com/gogf/gf/v3/errors/gerror"
"github.com/gogf/gf/v3/internal/json"
"github.com/gogf/gf/v3/test/gtest"
)
// customError is used to test As function