将所有gf框架报名改为gitee地址

This commit is contained in:
John 2017-11-27 13:49:23 +08:00
parent 5878be1e03
commit 0f78e7b17d
40 changed files with 52 additions and 52 deletions

View File

@ -6,9 +6,9 @@ import (
"sync"
"errors"
"database/sql"
"../../os/glog"
"../../os/gcache"
"../../util/grand"
"gitee.com/johng/gf/g/os/glog"
"gitee.com/johng/gf/g/os/gcache"
"gitee.com/johng/gf/g/util/grand"
_ "github.com/lib/pq"
_ "github.com/go-sql-driver/mysql"
)

View File

@ -5,7 +5,7 @@ import (
"errors"
"strings"
"database/sql"
"../../os/glog"
"gitee.com/johng/gf/g/os/glog"
)
// 关闭链接

View File

@ -3,7 +3,7 @@ package gdb
import (
"database/sql"
"fmt"
"../../os/glog"
"gitee.com/johng/gf/g/os/glog"
)
// 数据库链接对象

View File

@ -4,7 +4,7 @@ import (
"database/sql"
"fmt"
"regexp"
"../../os/glog"
"gitee.com/johng/gf/g/os/glog"
)
// postgresql的适配

View File

@ -5,7 +5,7 @@ import (
"errors"
"strings"
"strconv"
"../../os/glog"
"gitee.com/johng/gf/g/os/glog"
"fmt"
)

View File

@ -7,7 +7,7 @@ import (
"reflect"
"os"
"io"
"../../os/glog"
"gitee.com/johng/gf/g/os/glog"
)
// 将任意类型的变量进行md5摘要(注意map等非排序变量造成的不同结果)

View File

@ -5,8 +5,8 @@ import (
"encoding/hex"
"os"
"io"
"../../os/glog"
"../../encoding/gmd5"
"gitee.com/johng/gf/g/os/glog"
"gitee.com/johng/gf/g/encoding/gmd5"
)
// 将任意类型的变量进行SHA摘要(注意map等非排序变量造成的不同结果)

View File

@ -2,7 +2,7 @@ package ghttp
import (
"io/ioutil"
"../../encoding/gjson"
"gitee.com/johng/gf/g/encoding/gjson"
)
// 获得get参数

View File

@ -1,9 +1,9 @@
package ghttp
import (
"../../encoding/gjson"
"gitee.com/johng/gf/g/encoding/gjson"
"io/ioutil"
"../../os/glog"
"gitee.com/johng/gf/g/os/glog"
)
type ResponseJson struct {

View File

@ -8,7 +8,7 @@ import (
"time"
"log"
"regexp"
"../../os/glog"
"gitee.com/johng/gf/g/os/glog"
)
// 执行

View File

@ -8,8 +8,8 @@ import (
"net/url"
"net/http"
"path/filepath"
"../../os/gfile"
"../../encoding/ghtml"
"gitee.com/johng/gf/g/os/gfile"
"gitee.com/johng/gf/g/encoding/ghtml"
)
// 默认HTTP Server处理入口底层默认使用了gorutine调用该接口

View File

@ -7,7 +7,7 @@ import (
"errors"
"sync"
"time"
"../../net/gip"
"gitee.com/johng/gf/g/net/gip"
)
type scanner struct {

View File

@ -2,7 +2,7 @@ package gtcp
import (
"net"
"../../os/glog"
"gitee.com/johng/gf/g/os/glog"
)
// tcp server结构体

View File

@ -1,7 +1,7 @@
package gtcp
import (
"../../os/glog"
"gitee.com/johng/gf/g/os/glog"
)
// 执行监听

View File

@ -2,7 +2,7 @@ package gudp
import (
"net"
"../../os/glog"
"gitee.com/johng/gf/g/os/glog"
)
// tcp server结构体

View File

@ -1,6 +1,6 @@
package gudp
import "../../os/glog"
import "gitee.com/johng/gf/g/os/glog"
// 执行监听
func (s *gUdpServer) Run() {

View File

@ -3,8 +3,8 @@ package gcache
import (
"sync"
"time"
"../../util/gtime"
"../../encoding/ghash"
"gitee.com/johng/gf/g/util/gtime"
"gitee.com/johng/gf/g/encoding/ghash"
)
const (

View File

@ -4,9 +4,9 @@ import (
"os"
"time"
"strconv"
"../../util/gtime"
"../../container/gmap"
"../../container/glist"
"gitee.com/johng/gf/g/util/gtime"
"gitee.com/johng/gf/g/container/gmap"
"gitee.com/johng/gf/g/container/glist"
)
// 文件指针池

View File

@ -4,7 +4,7 @@ package gfilespace
import (
"sync"
"../../container/gbtree"
"gitee.com/johng/gf/g/container/gbtree"
)
// 文件空间管理结构体

View File

@ -2,8 +2,8 @@ package gfilespace
import (
"../../encoding/gbinary"
"../../container/gbtree"
"gitee.com/johng/gf/g/encoding/gbinary"
"gitee.com/johng/gf/g/container/gbtree"
)
// 添加空闲空间到管理器

View File

@ -9,7 +9,7 @@ import (
"path/filepath"
"time"
"fmt"
"../../os/gfile"
"gitee.com/johng/gf/g/os/gfile"
)
type Logger struct {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"strconv"
"gf/g/database/gdb"
"gitee.com/johng/gf/g/database/gdb"
)
// 本文件用于gf框架的mysql数据库操作示例不作为单元测试使用

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"strconv"
"gf/g/database/gdb"
"gitee.com/johng/gf/g/database/gdb"
)
// 本文件用于gf框架的postgresql数据库操作示例不作为单元测试使用

View File

@ -3,7 +3,7 @@ package main
import (
"strconv"
"fmt"
"gf/g/encoding/ghash"
"gitee.com/johng/gf/g/encoding/ghash"
)
func main () {

View File

@ -3,7 +3,7 @@ package main
import (
"fmt"
//"encoding/json"
"gf/g/encoding/gjson"
"gitee.com/johng/gf/g/encoding/gjson"
)
type City struct {

View File

@ -2,7 +2,7 @@ package main
import (
"testing"
"gf/g/encoding/gjson"
"gitee.com/johng/gf/g/encoding/gjson"
"encoding/json"
"log"
)

View File

@ -2,7 +2,7 @@ package main
import (
"fmt"
"gf/g/net/ghttp"
"gitee.com/johng/gf/g/net/ghttp"
)
var kvUrl string = "http://192.168.2.102:4168/kv"

View File

@ -2,7 +2,7 @@ package main
import (
"fmt"
"gf/g/net/ghttp"
"gitee.com/johng/gf/g/net/ghttp"
)

View File

@ -3,7 +3,7 @@ package main
import (
"net/http"
"io"
"gf/g/net/ghttp"
"gitee.com/johng/gf/g/net/ghttp"
)
func HelloServer1(w http.ResponseWriter, r *http.Request) {

View File

@ -1,8 +1,8 @@
package main
import (
"gf/g/net/graft"
"gf/g/net/gip"
"gitee.com/johng/gf/g/net/graft"
"gitee.com/johng/gf/g/net/gip"
"log"
)

View File

@ -3,9 +3,9 @@ package main
import (
"net"
"log"
"gf/g/net/graft"
"gitee.com/johng/gf/g/net/graft"
"fmt"
"gf/g/encoding/gjson"
"gitee.com/johng/gf/g/encoding/gjson"
)
func rpcLogSet() {

View File

@ -1,7 +1,7 @@
package main
import (
"gf/g/net/gscanner"
"gitee.com/johng/gf/g/net/gscanner"
"net"
"fmt"
"time"

View File

@ -3,11 +3,11 @@ package main
import (
"net"
"fmt"
"gf/g/net/gtcp"
"gitee.com/johng/gf/g/net/gtcp"
"io"
"log"
"time"
"gf/g/util/gutil"
"gitee.com/johng/gf/g/util/gutil"
)
func main() {

View File

@ -3,7 +3,7 @@ package main
import (
"net"
"fmt"
"gf/g/net/gudp"
"gitee.com/johng/gf/g/net/gudp"
)
func main() {

View File

@ -2,7 +2,7 @@ package main
import (
"fmt"
"gf/g/os/gconsole"
"gitee.com/johng/gf/g/os/gconsole"
)
func doEcho() {

View File

@ -2,7 +2,7 @@ package main
import (
"../../../gf/g/os/gfile"
"gitee.com/johng/gf/g/os/gfile"
"fmt"
)

View File

@ -2,7 +2,7 @@ package main
import (
"testing"
"gf/g/os/gcache"
"gitee.com/johng/gf/g/os/gcache"
)
var cache *gcache.Cache = gcache.New()

View File

@ -1,7 +1,7 @@
package main
import (
"gf/g/os/gfilespace"
"gitee.com/johng/gf/g/os/gfilespace"
"fmt"
)

View File

@ -2,7 +2,7 @@ package main
import (
"testing"
"gf/g/core/types/gmap"
"gitee.com/johng/gf/g/container/gmap"
)

View File

@ -1,7 +1,7 @@
package main
import (
"gf/g/core/types/gbtree"
"gitee.com/johng/gf/g/container/gbtree"
"fmt"
)