Skip to content

Commit e4c53a4

Browse files
committed
Merge remote-tracking branch 'Origin/feat/v3' into feat/v3
2 parents f4d2738 + 2cc4835 commit e4c53a4

File tree

1,311 files changed

+4597
-4597
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,311 files changed

+4597
-4597
lines changed

.github/workflows/format-code-on-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
-s blank \
2929
-s default \
3030
-s dot \
31-
-s "prefix(github.com/gogf/gf/v2)" \
31+
-s "prefix(github.com/gogf/gf/v3)" \
3232
-s "prefix(github.com/gogf/gf/cmd)" \
3333
-s "prefix(github.com/gogf/gf/contrib)" \
3434
-s "prefix(github.com/gogf/gf/example)" \

.github/workflows/scripts/before_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ gci write \
2121
-s blank \
2222
-s default \
2323
-s dot \
24-
-s "prefix(github.com/gogf/gf/v2)" \
24+
-s "prefix(github.com/gogf/gf/v3)" \
2525
-s "prefix(github.com/gogf/gf/cmd)" \
2626
-s "prefix(github.com/gogf/gf/contrib)" \
2727
-s "prefix(github.com/gogf/gf/example)" \

.github/workflows/scripts/replace_examples_gomod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ for file in `find ${workdir} -name go.mod`; do
5757
[ -z "$dep" ] && continue
5858

5959
# Calculate the relative path for the replacement
60-
if [[ "$dep" == "github.com/gogf/gf/v2" ]]; then
60+
if [[ "$dep" == "github.com/gogf/gf/v3" ]]; then
6161
replacement="$relativePath"
6262
else
6363
# Extract the path after v2 and remove trailing version

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ linters-settings:
116116
# A comma-separated list of prefixes, which, if set, checks import paths
117117
# with the given prefixes are grouped after 3rd-party packages.
118118
# Default: ""
119-
local-prefixes: github.com/gogf/gf/v2
119+
local-prefixes: github.com/gogf/gf/v3
120120
gci:
121121
# Section configuration to compare against.
122122
# Section names are case-insensitive and may contain parameters in ().

.make_version.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ for file in `find ${workdir} -name go.mod`; do
5757
cd $goModPath
5858
if [ $goModPath = "./cmd/gf" ]; then
5959
mv go.work go.work.version.bak
60-
go mod edit -replace github.com/gogf/gf/v2=../../
61-
go mod edit -replace github.com/gogf/gf/contrib/drivers/clickhouse/v2=../../contrib/drivers/clickhouse
62-
go mod edit -replace github.com/gogf/gf/contrib/drivers/mssql/v2=../../contrib/drivers/mssql
63-
go mod edit -replace github.com/gogf/gf/contrib/drivers/mysql/v2=../../contrib/drivers/mysql
64-
go mod edit -replace github.com/gogf/gf/contrib/drivers/oracle/v2=../../contrib/drivers/oracle
65-
go mod edit -replace github.com/gogf/gf/contrib/drivers/pgsql/v2=../../contrib/drivers/pgsql
66-
go mod edit -replace github.com/gogf/gf/contrib/drivers/sqlite/v2=../../contrib/drivers/sqlite
60+
go mod edit -replace github.com/gogf/gf/v3=../../
61+
go mod edit -replace github.com/gogf/gf/contrib/drivers/clickhouse/v3=../../contrib/drivers/clickhouse
62+
go mod edit -replace github.com/gogf/gf/contrib/drivers/mssql/v3=../../contrib/drivers/mssql
63+
go mod edit -replace github.com/gogf/gf/contrib/drivers/mysql/v3=../../contrib/drivers/mysql
64+
go mod edit -replace github.com/gogf/gf/contrib/drivers/oracle/v3=../../contrib/drivers/oracle
65+
go mod edit -replace github.com/gogf/gf/contrib/drivers/pgsql/v3=../../contrib/drivers/pgsql
66+
go mod edit -replace github.com/gogf/gf/contrib/drivers/sqlite/v3=../../contrib/drivers/sqlite
6767
fi
6868
go mod tidy
6969
# Remove toolchain line if exists
@@ -77,13 +77,13 @@ for file in `find ${workdir} -name go.mod`; do
7777
# Remove toolchain line if exists
7878
sed -i '' '/^toolchain/d' go.mod
7979
if [ $goModPath = "./cmd/gf" ]; then
80-
go mod edit -dropreplace github.com/gogf/gf/v2
81-
go mod edit -dropreplace github.com/gogf/gf/contrib/drivers/clickhouse/v2
82-
go mod edit -dropreplace github.com/gogf/gf/contrib/drivers/mssql/v2
83-
go mod edit -dropreplace github.com/gogf/gf/contrib/drivers/mysql/v2
84-
go mod edit -dropreplace github.com/gogf/gf/contrib/drivers/oracle/v2
85-
go mod edit -dropreplace github.com/gogf/gf/contrib/drivers/pgsql/v2
86-
go mod edit -dropreplace github.com/gogf/gf/contrib/drivers/sqlite/v2
80+
go mod edit -dropreplace github.com/gogf/gf/v3
81+
go mod edit -dropreplace github.com/gogf/gf/contrib/drivers/clickhouse/v3
82+
go mod edit -dropreplace github.com/gogf/gf/contrib/drivers/mssql/v3
83+
go mod edit -dropreplace github.com/gogf/gf/contrib/drivers/mysql/v3
84+
go mod edit -dropreplace github.com/gogf/gf/contrib/drivers/oracle/v3
85+
go mod edit -dropreplace github.com/gogf/gf/contrib/drivers/pgsql/v3
86+
go mod edit -dropreplace github.com/gogf/gf/contrib/drivers/sqlite/v3
8787
mv go.work.version.bak go.work
8888
fi
8989
cd -

README.MD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<div align=center>
33
<img src="https://goframe.org/img/logo_full.png" width="300" alt="goframe gf logo"/>
44

5-
[![Go Reference](https://pkg.go.dev/badge/github.com/gogf/gf/v2.svg)](https://pkg.go.dev/github.com/gogf/gf/v2)
5+
[![Go Reference](https://pkg.go.dev/badge/github.com/gogf/gf/v3.svg)](https://pkg.go.dev/github.com/gogf/gf/v3)
66
[![GoFrame CI](https://github.com/gogf/gf/actions/workflows/ci-main.yml/badge.svg)](https://github.com/gogf/gf/actions/workflows/ci-main.yml)
7-
[![Go Report Card](https://goreportcard.com/badge/github.com/gogf/gf/v2)](https://goreportcard.com/report/github.com/gogf/gf/v2)
7+
[![Go Report Card](https://goreportcard.com/badge/github.com/gogf/gf/v3)](https://goreportcard.com/report/github.com/gogf/gf/v3)
88
[![Code Coverage](https://codecov.io/gh/gogf/gf/branch/master/graph/badge.svg)](https://codecov.io/gh/gogf/gf)
99
[![Production Ready](https://img.shields.io/badge/production-ready-blue.svg?style=flat)](https://github.com/gogf/gf)
1010
[![License](https://img.shields.io/github/license/gogf/gf.svg?style=flat)](https://github.com/gogf/gf)
@@ -28,7 +28,7 @@ A powerful framework for faster, easier, and more efficient project development.
2828
- GoFrame Official Site(en): [https://goframe.org/en](https://goframe.org/en)
2929
- GoFrame Mirror Site(中文): [https://goframe.org.cn](https://goframe.org.cn)
3030
- GoFrame Mirror Site(github pages): [https://pages.goframe.org](https://pages.goframe.org)
31-
- GoDoc API: [https://pkg.go.dev/github.com/gogf/gf/v2](https://pkg.go.dev/github.com/gogf/gf/v2)
31+
- GoDoc API: [https://pkg.go.dev/github.com/gogf/gf/v3](https://pkg.go.dev/github.com/gogf/gf/v3)
3232

3333

3434
# Contributors

cmd/gf/README.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ You can also install `gf` tool using pre-built binaries: <https://github.com/gog
3737
## 2) Manually Install
3838

3939
```shell
40-
go install github.com/gogf/gf/cmd/gf/v2@latest # latest version
41-
go install github.com/gogf/gf/cmd/gf/v2@v2.5.5 # certain version(should be >= v2.5.5)
40+
go install github.com/gogf/gf/cmd/gf/v3@latest # latest version
41+
go install github.com/gogf/gf/cmd/gf/v3@v2.5.5 # certain version(should be >= v2.5.5)
4242
```
4343

4444
## 2. Commands

cmd/gf/gfcmd/gfcmd.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ import (
1111
"context"
1212
"runtime"
1313

14-
_ "github.com/gogf/gf/cmd/gf/v2/internal/packed"
14+
_ "github.com/gogf/gf/cmd/gf/v3/internal/packed"
1515

16-
"github.com/gogf/gf/v2/errors/gcode"
17-
"github.com/gogf/gf/v2/errors/gerror"
18-
"github.com/gogf/gf/v2/frame/g"
19-
"github.com/gogf/gf/v2/os/gcfg"
20-
"github.com/gogf/gf/v2/os/gcmd"
21-
"github.com/gogf/gf/v2/os/gfile"
22-
"github.com/gogf/gf/v2/text/gstr"
16+
"github.com/gogf/gf/v3/errors/gcode"
17+
"github.com/gogf/gf/v3/errors/gerror"
18+
"github.com/gogf/gf/v3/frame/g"
19+
"github.com/gogf/gf/v3/os/gcfg"
20+
"github.com/gogf/gf/v3/os/gcmd"
21+
"github.com/gogf/gf/v3/os/gfile"
22+
"github.com/gogf/gf/v3/text/gstr"
2323

24-
"github.com/gogf/gf/cmd/gf/v2/internal/cmd"
25-
"github.com/gogf/gf/cmd/gf/v2/internal/utility/allyes"
26-
"github.com/gogf/gf/cmd/gf/v2/internal/utility/mlog"
24+
"github.com/gogf/gf/cmd/gf/v3/internal/cmd"
25+
"github.com/gogf/gf/cmd/gf/v3/internal/utility/allyes"
26+
"github.com/gogf/gf/cmd/gf/v3/internal/utility/mlog"
2727
)
2828

2929
const cliFolderName = `hack`

cmd/gf/go.mod

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
module github.com/gogf/gf/cmd/gf/v2
1+
module github.com/gogf/gf/cmd/gf/v3
22

33
go 1.22
44

55
require (
6-
github.com/gogf/gf/contrib/drivers/clickhouse/v2 v2.9.0
7-
github.com/gogf/gf/contrib/drivers/mssql/v2 v2.9.0
8-
github.com/gogf/gf/contrib/drivers/mysql/v2 v2.9.0
9-
github.com/gogf/gf/contrib/drivers/oracle/v2 v2.9.0
10-
github.com/gogf/gf/contrib/drivers/pgsql/v2 v2.9.0
11-
github.com/gogf/gf/contrib/drivers/sqlite/v2 v2.9.0
12-
github.com/gogf/gf/v2 v2.9.0
6+
github.com/gogf/gf/contrib/drivers/clickhouse/v3 v3.0.0-alpha
7+
github.com/gogf/gf/contrib/drivers/mssql/v3 v3.0.0-alpha
8+
github.com/gogf/gf/contrib/drivers/mysql/v3 v3.0.0-alpha
9+
github.com/gogf/gf/contrib/drivers/oracle/v3 v3.0.0-alpha
10+
github.com/gogf/gf/contrib/drivers/pgsql/v3 v3.0.0-alpha
11+
github.com/gogf/gf/contrib/drivers/sqlite/v3 v3.0.0-alpha
12+
github.com/gogf/gf/v3 v3.0.0-alpha
1313
github.com/gogf/selfupdate v0.0.0-20231215043001-5c48c528462f
1414
github.com/olekukonko/tablewriter v0.0.5
1515
github.com/schollz/progressbar/v3 v3.15.0

cmd/gf/go.work

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ use (
1010
// =====================================================================================================
1111

1212
replace (
13-
github.com/gogf/gf/contrib/drivers/clickhouse/v2 => ../../contrib/drivers/clickhouse
14-
github.com/gogf/gf/contrib/drivers/mssql/v2 => ../../contrib/drivers/mssql
15-
github.com/gogf/gf/contrib/drivers/mysql/v2 => ../../contrib/drivers/mysql
16-
github.com/gogf/gf/contrib/drivers/oracle/v2 => ../../contrib/drivers/oracle
17-
github.com/gogf/gf/contrib/drivers/pgsql/v2 => ../../contrib/drivers/pgsql
18-
github.com/gogf/gf/contrib/drivers/sqlite/v2 => ../../contrib/drivers/sqlite
19-
github.com/gogf/gf/v2 => ../../
13+
github.com/gogf/gf/contrib/drivers/clickhouse/v3 => ../../contrib/drivers/clickhouse
14+
github.com/gogf/gf/contrib/drivers/mssql/v3 => ../../contrib/drivers/mssql
15+
github.com/gogf/gf/contrib/drivers/mysql/v3 => ../../contrib/drivers/mysql
16+
github.com/gogf/gf/contrib/drivers/oracle/v3 => ../../contrib/drivers/oracle
17+
github.com/gogf/gf/contrib/drivers/pgsql/v3 => ../../contrib/drivers/pgsql
18+
github.com/gogf/gf/contrib/drivers/sqlite/v3 => ../../contrib/drivers/sqlite
19+
github.com/gogf/gf/v3 => ../../
2020
)

0 commit comments

Comments
 (0)