version 2

This commit is contained in:
John Guo
2021-10-11 21:41:56 +08:00
parent bea54b445e
commit 1bc0635f8b
1053 changed files with 2892 additions and 2892 deletions

View File

@ -8,8 +8,8 @@ package g
import (
"context"
"github.com/gogf/gf/container/gvar"
"github.com/gogf/gf/util/gmeta"
"github.com/gogf/gf/v2/container/gvar"
"github.com/gogf/gf/v2/util/gmeta"
)
type (

View File

@ -8,11 +8,11 @@ package g
import (
"context"
"github.com/gogf/gf/container/gvar"
"github.com/gogf/gf/internal/empty"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/os/gproc"
"github.com/gogf/gf/util/gutil"
"github.com/gogf/gf/v2/container/gvar"
"github.com/gogf/gf/v2/internal/empty"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/os/gproc"
"github.com/gogf/gf/v2/util/gutil"
)
// NewVar returns a gvar.Var.

View File

@ -7,18 +7,18 @@
package g
import (
"github.com/gogf/gf/database/gdb"
"github.com/gogf/gf/database/gredis"
"github.com/gogf/gf/frame/gins"
"github.com/gogf/gf/i18n/gi18n"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/net/gtcp"
"github.com/gogf/gf/net/gudp"
"github.com/gogf/gf/os/gcfg"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gres"
"github.com/gogf/gf/os/gview"
"github.com/gogf/gf/util/gvalid"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/database/gredis"
"github.com/gogf/gf/v2/frame/gins"
"github.com/gogf/gf/v2/i18n/gi18n"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/net/gtcp"
"github.com/gogf/gf/v2/net/gudp"
"github.com/gogf/gf/v2/os/gcfg"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gres"
"github.com/gogf/gf/v2/os/gview"
"github.com/gogf/gf/v2/util/gvalid"
)
// Client is a convenience function, which creates and returns a new HTTP client.

View File

@ -7,7 +7,7 @@
package g
import (
"github.com/gogf/gf/internal/intlog"
"github.com/gogf/gf/v2/internal/intlog"
)
// SetDebug enables/disables the GoFrame internal logging manually.

View File

@ -7,8 +7,8 @@
package g_test
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
)
func ExampleServer() {

View File

@ -8,7 +8,7 @@
package gins
import (
"github.com/gogf/gf/container/gmap"
"github.com/gogf/gf/v2/container/gmap"
)
var (

View File

@ -7,7 +7,7 @@
package gins
import (
"github.com/gogf/gf/os/gcfg"
"github.com/gogf/gf/v2/os/gcfg"
)
// Config returns an instance of View with default settings.

View File

@ -9,16 +9,16 @@ package gins
import (
"context"
"fmt"
"github.com/gogf/gf/errors/gcode"
"github.com/gogf/gf/errors/gerror"
"github.com/gogf/gf/internal/intlog"
"github.com/gogf/gf/os/gcfg"
"github.com/gogf/gf/text/gstr"
"github.com/gogf/gf/util/gutil"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/internal/intlog"
"github.com/gogf/gf/v2/os/gcfg"
"github.com/gogf/gf/v2/text/gstr"
"github.com/gogf/gf/v2/util/gutil"
"github.com/gogf/gf/database/gdb"
"github.com/gogf/gf/text/gregex"
"github.com/gogf/gf/util/gconv"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/text/gregex"
"github.com/gogf/gf/v2/util/gconv"
)
const (

View File

@ -7,7 +7,7 @@
package gins
import (
"github.com/gogf/gf/i18n/gi18n"
"github.com/gogf/gf/v2/i18n/gi18n"
)
// I18n returns an instance of gi18n.Manager.

View File

@ -9,8 +9,8 @@ package gins
import (
"context"
"fmt"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/util/gutil"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/util/gutil"
)
const (

View File

@ -9,11 +9,11 @@ package gins
import (
"context"
"fmt"
"github.com/gogf/gf/database/gredis"
"github.com/gogf/gf/errors/gcode"
"github.com/gogf/gf/errors/gerror"
"github.com/gogf/gf/util/gconv"
"github.com/gogf/gf/util/gutil"
"github.com/gogf/gf/v2/database/gredis"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/util/gconv"
"github.com/gogf/gf/v2/util/gutil"
)
const (

View File

@ -7,7 +7,7 @@
package gins
import (
"github.com/gogf/gf/os/gres"
"github.com/gogf/gf/v2/os/gres"
)
// Resource returns an instance of Resource.

View File

@ -9,10 +9,10 @@ package gins
import (
"context"
"fmt"
"github.com/gogf/gf/internal/intlog"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/util/gconv"
"github.com/gogf/gf/util/gutil"
"github.com/gogf/gf/v2/internal/intlog"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/util/gconv"
"github.com/gogf/gf/v2/util/gutil"
)
const (

View File

@ -9,8 +9,8 @@ package gins
import (
"context"
"fmt"
"github.com/gogf/gf/os/gview"
"github.com/gogf/gf/util/gutil"
"github.com/gogf/gf/v2/os/gview"
"github.com/gogf/gf/v2/util/gutil"
)
const (

View File

@ -7,10 +7,10 @@
package gins_test
import (
"github.com/gogf/gf/frame/gins"
"github.com/gogf/gf/v2/frame/gins"
"testing"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/v2/test/gtest"
)
func Test_SetGet(t *testing.T) {

View File

@ -9,16 +9,16 @@ package gins_test
import (
"context"
"fmt"
"github.com/gogf/gf/debug/gdebug"
"github.com/gogf/gf/frame/gins"
"github.com/gogf/gf/v2/debug/gdebug"
"github.com/gogf/gf/v2/frame/gins"
"testing"
"time"
"github.com/gogf/gf/os/gcfg"
"github.com/gogf/gf/v2/os/gcfg"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/test/gtest"
)
var (

View File

@ -7,15 +7,15 @@
package gins_test
import (
"github.com/gogf/gf/debug/gdebug"
"github.com/gogf/gf/frame/gins"
"github.com/gogf/gf/os/gcfg"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/debug/gdebug"
"github.com/gogf/gf/v2/frame/gins"
"github.com/gogf/gf/v2/os/gcfg"
"github.com/gogf/gf/v2/os/gtime"
"testing"
"time"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/test/gtest"
)
func Test_Database(t *testing.T) {

View File

@ -7,15 +7,15 @@
package gins_test
import (
"github.com/gogf/gf/debug/gdebug"
"github.com/gogf/gf/frame/gins"
"github.com/gogf/gf/os/gcfg"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/debug/gdebug"
"github.com/gogf/gf/v2/frame/gins"
"github.com/gogf/gf/v2/os/gcfg"
"github.com/gogf/gf/v2/os/gtime"
"testing"
"time"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/test/gtest"
)
func Test_Redis(t *testing.T) {

View File

@ -9,13 +9,13 @@ package gins
import (
"context"
"fmt"
"github.com/gogf/gf/debug/gdebug"
"github.com/gogf/gf/os/gcfg"
"github.com/gogf/gf/v2/debug/gdebug"
"github.com/gogf/gf/v2/os/gcfg"
"testing"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/test/gtest"
)
func Test_View(t *testing.T) {