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

@ -1,8 +1,8 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/gbuild"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gbuild"
)
func main() {

View File

@ -2,8 +2,8 @@ package main
import (
"fmt"
"github.com/gogf/gf/os/gcache"
"github.com/gogf/gf/os/gctx"
"github.com/gogf/gf/v2/os/gcache"
"github.com/gogf/gf/v2/os/gctx"
"time"
)

View File

@ -2,8 +2,8 @@ package main
import (
"fmt"
"github.com/gogf/gf/os/gcache"
"github.com/gogf/gf/os/gctx"
"github.com/gogf/gf/v2/os/gcache"
"github.com/gogf/gf/v2/os/gctx"
)
func main() {

View File

@ -2,8 +2,8 @@ package main
import (
"fmt"
"github.com/gogf/gf/os/gcache"
"github.com/gogf/gf/os/gctx"
"github.com/gogf/gf/v2/os/gcache"
"github.com/gogf/gf/v2/os/gctx"
)
func main() {

View File

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

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/gogf/gf/os/gcache"
"github.com/gogf/gf/v2/os/gcache"
)
func main() {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/gogf/gf/os/gcache"
"github.com/gogf/gf/v2/os/gcache"
)
func main() {

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() {

View File

@ -1,8 +1,8 @@
package main
import (
"github.com/gogf/gf/frame/g"
_ "github.com/gogf/gf/os/gres/testdata"
"github.com/gogf/gf/v2/frame/g"
_ "github.com/gogf/gf/v2/os/gres/testdata"
)
func main() {

View File

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

View File

@ -3,8 +3,8 @@ package main
import (
"time"
"github.com/gogf/gf/os/gcron"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/v2/os/gcron"
"github.com/gogf/gf/v2/os/glog"
)
func main() {

View File

@ -3,8 +3,8 @@ package main
import (
"time"
"github.com/gogf/gf/os/gcron"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/v2/os/gcron"
"github.com/gogf/gf/v2/os/glog"
)
func main() {

View File

@ -3,8 +3,8 @@ package main
import (
"time"
"github.com/gogf/gf/os/gcron"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/v2/os/gcron"
"github.com/gogf/gf/v2/os/glog"
)
func test() {

View File

@ -3,8 +3,8 @@ package main
import (
"fmt"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/util/gutil"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/util/gutil"
)
var dirpath1 = "/home/john/Workspace/temp/"

View File

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

View File

@ -1,8 +1,8 @@
package main
import (
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/util/gutil"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/util/gutil"
)
func main() {

View File

@ -5,7 +5,7 @@ import (
"os"
"time"
"github.com/gogf/gf/os/gfpool"
"github.com/gogf/gf/v2/os/gfpool"
)
func main() {

View File

@ -4,7 +4,7 @@ import (
"log"
"github.com/fsnotify/fsnotify"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/v2/os/glog"
)
func main() {

View File

@ -1,8 +1,8 @@
package main
import (
"github.com/gogf/gf/os/gfsnotify"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/v2/os/gfsnotify"
"github.com/gogf/gf/v2/os/glog"
)
func main() {

View File

@ -3,9 +3,9 @@ package main
import (
"time"
"github.com/gogf/gf/os/gfsnotify"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gtimer"
"github.com/gogf/gf/v2/os/gfsnotify"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gtimer"
)
func main() {

View File

@ -3,9 +3,9 @@ package main
import (
"time"
"github.com/gogf/gf/os/gfsnotify"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gtimer"
"github.com/gogf/gf/v2/os/gfsnotify"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gtimer"
)
func main() {

View File

@ -1,8 +1,8 @@
package main
import (
"github.com/gogf/gf/os/gfsnotify"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/v2/os/gfsnotify"
"github.com/gogf/gf/v2/os/glog"
)
// 对同一个文件多次Add是否超过系统inotify限制

View File

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

View File

@ -1,8 +1,8 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/glog"
)
func main() {

View File

@ -1,7 +1,7 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
"time"
)

View File

@ -1,7 +1,7 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
"time"
)

View File

@ -1,8 +1,8 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gfile"
)
func main() {

View File

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

View File

@ -1,11 +1,11 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
"time"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/os/gtimer"
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/os/gtimer"
)
func main() {

View File

@ -1,6 +1,6 @@
package main
import "github.com/gogf/gf/os/glog"
import "github.com/gogf/gf/v2/os/glog"
func Test() {
glog.Error("This is error!")

View File

@ -1,8 +1,8 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gfile"
)
// 设置日志等级

View File

@ -1,8 +1,8 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/glog"
)
func main() {

View File

@ -2,9 +2,9 @@ package main
import (
"errors"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/errors/gerror"
"github.com/gogf/gf/v2/errors/gerror"
)
func MakeError() error {

View File

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

View File

@ -1,8 +1,8 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/glog"
)
// 设置日志等级过滤掉Info日志信息

View File

@ -1,8 +1,8 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/glog"
)
func main() {

View File

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

View File

@ -1,7 +1,7 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
)
func PrintLog(content string) {

View File

@ -1,8 +1,8 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gfile"
)
// 设置日志输出路径

View File

@ -1,10 +1,10 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
"time"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/os/gtime"
)
// 测试删除日志文件是否会重建日志文件

View File

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

View File

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

View File

@ -1,7 +1,7 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
"sync"
)

View File

@ -1,7 +1,7 @@
package main
//import (
// "github.com/gogf/gf/os/glog"
// "github.com/gogf/gf/v2/os/glog"
// "github.com/robertkowalski/graylog-golang"
//)
//

View File

@ -2,10 +2,10 @@ package main
import (
"fmt"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/text/gregex"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/text/gregex"
)
type MyWriter struct {

View File

@ -2,8 +2,8 @@ package main
//import (
// "context"
// "github.com/gogf/gf/frame/g"
// "github.com/gogf/gf/os/glog"
// "github.com/gogf/gf/v2/frame/g"
// "github.com/gogf/gf/v2/os/glog"
// "github.com/robertkowalski/graylog-golang"
//)
//

View File

@ -2,10 +2,10 @@ package main
import (
"context"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/internal/json"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/text/gstr"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/internal/json"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/text/gstr"
"os"
)

View File

@ -4,8 +4,8 @@ import (
"sync"
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gmlock"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gmlock"
)
// 内存锁基本使用

View File

@ -4,8 +4,8 @@ import (
"sync"
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gmlock"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gmlock"
)
// 内存锁 - TryLock

View File

@ -4,8 +4,8 @@ import (
"fmt"
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gmlock"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gmlock"
)
// 内存锁 - 手动Unlock与计时Unlock冲突校验

View File

@ -6,7 +6,7 @@ import (
"sync"
"time"
"github.com/gogf/gf/os/gmlock"
"github.com/gogf/gf/v2/os/gmlock"
)
// 测试Locker是否会产生死锁

View File

@ -3,8 +3,8 @@ package main
import (
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gmutex"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gmutex"
)
func main() {

View File

@ -3,9 +3,9 @@ package main
import (
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/os/gmutex"
"github.com/gogf/gf/v2/os/gmutex"
)
func main() {

View File

@ -4,8 +4,8 @@ import (
"os"
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gproc"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gproc"
)
// 父子进程基本演示

View File

@ -4,8 +4,8 @@ import (
"os"
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gproc"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gproc"
)
// 父进程销毁后,使用进程管理器查看存活的子进程。

View File

@ -4,9 +4,9 @@ import (
"os"
"time"
"github.com/gogf/gf/os/genv"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gproc"
"github.com/gogf/gf/v2/os/genv"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gproc"
)
// 查看父子进程的环境变量

View File

@ -5,10 +5,10 @@ import (
"os"
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gproc"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/os/gtimer"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gproc"
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/os/gtimer"
)
func main() {

View File

@ -6,8 +6,8 @@ import (
"os"
"time"
"github.com/gogf/gf/os/gproc"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/os/gproc"
"github.com/gogf/gf/v2/os/gtime"
)
func main() {

View File

@ -4,7 +4,7 @@ package main
import (
"fmt"
"github.com/gogf/gf/os/gproc"
"github.com/gogf/gf/v2/os/gproc"
)
func main() {

View File

@ -2,7 +2,7 @@ package main
import (
"fmt"
"github.com/gogf/gf/os/gproc"
"github.com/gogf/gf/v2/os/gproc"
)
func main() {

View File

@ -3,7 +3,7 @@ package main
import (
"fmt"
"github.com/gogf/gf/os/gproc"
"github.com/gogf/gf/v2/os/gproc"
)
// 执行shell指令

View File

@ -2,7 +2,7 @@ package main
import (
"fmt"
"github.com/gogf/gf/os/gproc"
"github.com/gogf/gf/v2/os/gproc"
)
func main() {

View File

@ -2,7 +2,7 @@ package main
import (
"fmt"
"github.com/gogf/gf/os/gproc"
"github.com/gogf/gf/v2/os/gproc"
"os"
"time"
)

View File

@ -1,10 +1,10 @@
package main
import (
_ "github.com/gogf/gf/os/gres/testdata/example/boot"
_ "github.com/gogf/gf/v2/os/gres/testdata/example/boot"
"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 main() {

View File

@ -1,9 +1,9 @@
package main
import (
"github.com/gogf/gf/crypto/gaes"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/os/gres"
"github.com/gogf/gf/v2/crypto/gaes"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/os/gres"
)
var (

View File

@ -1,9 +1,9 @@
package main
import (
"github.com/gogf/gf/crypto/gaes"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/os/gres"
"github.com/gogf/gf/v2/crypto/gaes"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/os/gres"
)
var (

View File

@ -5,7 +5,7 @@ import (
"sync"
"time"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/os/gtime"
)
func main() {

View File

@ -5,8 +5,8 @@ import (
"sync"
"time"
"github.com/gogf/gf/os/grpool"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/os/grpool"
"github.com/gogf/gf/v2/os/gtime"
)
func main() {

View File

@ -4,8 +4,8 @@ import (
"fmt"
"time"
"github.com/gogf/gf/os/grpool"
"github.com/gogf/gf/os/gtimer"
"github.com/gogf/gf/v2/os/grpool"
"github.com/gogf/gf/v2/os/gtimer"
)
func job() {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"sync"
"github.com/gogf/gf/os/grpool"
"github.com/gogf/gf/v2/os/grpool"
)
func main() {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"sync"
"github.com/gogf/gf/os/grpool"
"github.com/gogf/gf/v2/os/grpool"
)
func main() {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/gogf/gf/os/grpool"
"github.com/gogf/gf/v2/os/grpool"
)
func main() {

View File

@ -1,9 +1,9 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/os/gtime"
"time"
)

View File

@ -1,10 +1,10 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/os/gsession"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/os/gsession"
"github.com/gogf/gf/v2/os/gtime"
"time"
)

View File

@ -1,10 +1,10 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/os/gsession"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/os/gsession"
"github.com/gogf/gf/v2/os/gtime"
"time"
)

View File

@ -1,10 +1,10 @@
package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/os/gsession"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/os/gsession"
"github.com/gogf/gf/v2/os/gtime"
"time"
)

View File

@ -4,9 +4,9 @@ import (
"fmt"
"time"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/gspath"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gspath"
"github.com/gogf/gf/v2/os/gtime"
)
func main() {

View File

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

View File

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

View File

@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/os/gtime"
)
func main() {

View File

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

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/os/gtime"
)
func main() {

View File

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

View File

@ -4,7 +4,7 @@ import (
"fmt"
"regexp"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/os/gtime"
)
func main() {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"regexp"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/os/gtime"
)
func main() {

View File

@ -4,8 +4,8 @@ import (
"fmt"
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gtime"
)
func main() {

View File

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

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/os/gtime"
)
func main() {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/gogf/gf/os/gtimer"
"github.com/gogf/gf/v2/os/gtimer"
)
func main() {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/gogf/gf/os/gtimer"
"github.com/gogf/gf/v2/os/gtimer"
)
func main() {

View File

@ -4,8 +4,8 @@ import (
"fmt"
"time"
"github.com/gogf/gf/container/gtype"
"github.com/gogf/gf/os/gtimer"
"github.com/gogf/gf/v2/container/gtype"
"github.com/gogf/gf/v2/os/gtimer"
)
func main() {

View File

@ -3,8 +3,8 @@ package main
import (
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gtimer"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gtimer"
)
func main() {

View File

@ -3,8 +3,8 @@ package main
import (
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gtimer"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gtimer"
)
func main() {

View File

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

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() {

Some files were not shown because too many files have changed in this diff Show More