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

@ -12,7 +12,7 @@ import (
"regexp"
"testing"
"github.com/gogf/gf/text/gregex"
"github.com/gogf/gf/v2/text/gregex"
)
var pattern = `(\w+).+\-\-\s*(.+)`

View File

@ -12,8 +12,8 @@ import (
"strings"
"testing"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/text/gregex"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v2/text/gregex"
)
var (

View File

@ -16,11 +16,11 @@ import (
"unicode"
"unicode/utf8"
"github.com/gogf/gf/internal/utils"
"github.com/gogf/gf/v2/internal/utils"
"github.com/gogf/gf/util/gconv"
"github.com/gogf/gf/v2/util/gconv"
"github.com/gogf/gf/util/grand"
"github.com/gogf/gf/v2/util/grand"
)
const (

View File

@ -7,8 +7,8 @@
package gstr
import (
"github.com/gogf/gf/errors/gcode"
"github.com/gogf/gf/errors/gerror"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"net/url"
"strings"
)

View File

@ -7,7 +7,7 @@
package gstr
import (
"github.com/gogf/gf/internal/utils"
"github.com/gogf/gf/v2/internal/utils"
"strings"
)

View File

@ -7,7 +7,7 @@
package gstr
import (
"github.com/gogf/gf/internal/utils"
"github.com/gogf/gf/v2/internal/utils"
"strings"
)

View File

@ -7,7 +7,7 @@
package gstr
import (
"github.com/gogf/gf/util/gconv"
"github.com/gogf/gf/v2/util/gconv"
"strings"
)

View File

@ -11,9 +11,9 @@ package gstr_test
import (
"testing"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/text/gstr"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v2/text/gstr"
)
func Test_Replace(t *testing.T) {

View File

@ -7,10 +7,10 @@
package gstr_test
import (
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/v2/test/gtest"
"testing"
"github.com/gogf/gf/text/gstr"
"github.com/gogf/gf/v2/text/gstr"
)
func Test_CaseCamel(t *testing.T) {

View File

@ -11,8 +11,8 @@ package gstr_test
import (
"testing"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/text/gstr"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v2/text/gstr"
)
func Test_OctStr(t *testing.T) {

View File

@ -11,8 +11,8 @@ package gstr_test
import (
"testing"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/text/gstr"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v2/text/gstr"
)
func Test_IsSubDomain(t *testing.T) {

View File

@ -12,9 +12,9 @@ import (
"net/url"
"testing"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/text/gstr"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v2/text/gstr"
)
func Test_Parse(t *testing.T) {

View File

@ -11,8 +11,8 @@ package gstr_test
import (
"testing"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/text/gstr"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v2/text/gstr"
)
func Test_Pos(t *testing.T) {

View File

@ -11,8 +11,8 @@ package gstr_test
import (
"testing"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/text/gstr"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v2/text/gstr"
)
func Test_Trim(t *testing.T) {

View File

@ -11,8 +11,8 @@ package gstr_test
import (
"testing"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/text/gstr"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/v2/text/gstr"
)
func Test_CompareVersion(t *testing.T) {