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

@ -3,7 +3,7 @@ package main
import (
"fmt"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
)
// 使用第二个参数指定读取的配置文件

View File

@ -3,7 +3,7 @@ package main
import (
"fmt"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
)
// 使用默认的config.toml配置文件读取配置

View File

@ -3,7 +3,7 @@ package main
import (
"fmt"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
)
// 使用GetVar获取动态变量

View File

@ -3,7 +3,7 @@ package main
import (
"fmt"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
)
// 使用g.Config方法获取配置管理对象并指定默认的配置文件名称

View File

@ -4,9 +4,9 @@ import (
"fmt"
"time"
"github.com/gogf/gf/os/gtimer"
"github.com/gogf/gf/v2/os/gtimer"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
)
// 配置文件热更新示例

View File

@ -3,7 +3,7 @@ package main
import (
"fmt"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
)
func main() {