Browse Source

更新模块名称

zcool321@sina.com 5 years ago
parent
commit
59f84a8033
6 changed files with 6 additions and 6 deletions
  1. 1 1
      example/boot/router.go
  2. 1 1
      example/main.go
  3. 1 1
      example/test/api_test.go
  4. 1 1
      example/test/cache_test.go
  5. 1 1
      go.mod
  6. 1 1
      gtoken/gtoken_test.go

+ 1 - 1
example/boot/router.go

@@ -1,10 +1,10 @@
 package boot
 
 import (
+	"github.com/goflyfox/gtoken/gtoken"
 	"github.com/gogf/gf/frame/g"
 	"github.com/gogf/gf/net/ghttp"
 	"github.com/gogf/gf/os/glog"
-	"gtoken/gtoken"
 )
 
 /*

+ 1 - 1
example/main.go

@@ -1,8 +1,8 @@
 package main
 
 import (
+	_ "github.com/goflyfox/gtoken/example/boot"
 	"github.com/gogf/gf/frame/g"
-	_ "gtoken/example/boot"
 )
 
 func main() {

+ 1 - 1
example/test/api_test.go

@@ -2,9 +2,9 @@ package test
 
 import (
 	"encoding/json"
+	"github.com/goflyfox/gtoken/gtoken"
 	"github.com/gogf/gf/frame/g"
 	"github.com/gogf/gf/net/ghttp"
-	"gtoken/gtoken"
 	"testing"
 )
 

+ 1 - 1
example/test/cache_test.go

@@ -1,11 +1,11 @@
 package test
 
 import (
+	"github.com/goflyfox/gtoken/gtoken"
 	"github.com/gogf/gf/encoding/gjson"
 	"github.com/gogf/gf/frame/g"
 	"github.com/gogf/gf/os/gcache"
 	"github.com/gogf/gf/util/gconv"
-	"gtoken/gtoken"
 	"testing"
 	"time"
 )

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
-module gtoken
+module github.com/goflyfox/gtoken
 
 require github.com/gogf/gf v1.8.4-0.20190913164306-41a0b5293949
 

+ 1 - 1
gtoken/gtoken_test.go

@@ -1,7 +1,7 @@
 package gtoken_test
 
 import (
-	"gtoken/gtoken"
+	"github.com/goflyfox/gtoken/gtoken"
 	"testing"
 )