diff --git a/application.go b/application.go index dfdf580..d7ccae1 100644 --- a/application.go +++ b/application.go @@ -1,11 +1,11 @@ package hotime import ( - . "./cache" - "./code" - . "./common" - . "./db" - . "./log" + . "code.hoteas.com/golang/hotime/cache" + "code.hoteas.com/golang/hotime/code" + . "code.hoteas.com/golang/hotime/common" + . "code.hoteas.com/golang/hotime/db" + . "code.hoteas.com/golang/hotime/log" "database/sql" "github.com/sirupsen/logrus" "io" diff --git a/cache/cache.go b/cache/cache.go index 39ed1e6..1462518 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -1,7 +1,7 @@ package cache import ( - . "../common" + . "code.hoteas.com/golang/hotime/common" "errors" ) diff --git a/cache/cache_db.go b/cache/cache_db.go index 3c9b983..4761dc2 100644 --- a/cache/cache_db.go +++ b/cache/cache_db.go @@ -1,7 +1,7 @@ package cache import ( - . "../common" + . "code.hoteas.com/golang/hotime/common" "database/sql" "encoding/json" "strings" diff --git a/cache/cache_memory.go b/cache/cache_memory.go index 5dfa965..30d50e0 100644 --- a/cache/cache_memory.go +++ b/cache/cache_memory.go @@ -1,7 +1,7 @@ package cache import ( - . "../common" + . "code.hoteas.com/golang/hotime/common" "strings" "sync" "time" diff --git a/cache/cache_redis.go b/cache/cache_redis.go index 5ee4d92..9d005ae 100644 --- a/cache/cache_redis.go +++ b/cache/cache_redis.go @@ -1,7 +1,7 @@ package cache import ( - . "../common" + . "code.hoteas.com/golang/hotime/common" "github.com/garyburd/redigo/redis" "strings" "time" diff --git a/cache/type.go b/cache/type.go index a95e8b1..e7e69f1 100644 --- a/cache/type.go +++ b/cache/type.go @@ -1,7 +1,7 @@ package cache import ( - . "../common" + . "code.hoteas.com/golang/hotime/common" ) type CacheIns interface { diff --git a/code.go b/code.go index 197db2a..a3140a3 100644 --- a/code.go +++ b/code.go @@ -1,7 +1,7 @@ package hotime import ( - . "./common" + . "code.hoteas.com/golang/hotime/common" "strings" ) diff --git a/code/config.go b/code/config.go index 877691e..f4da227 100644 --- a/code/config.go +++ b/code/config.go @@ -1,7 +1,7 @@ package code import ( - . "../common" + . "code.hoteas.com/golang/hotime/common" ) var Config = Map{ diff --git a/code/makecode.go b/code/makecode.go index 3e2f302..c3f4704 100644 --- a/code/makecode.go +++ b/code/makecode.go @@ -1,8 +1,8 @@ package code import ( - . "../common" - "../db" + . "code.hoteas.com/golang/hotime/common" + "code.hoteas.com/golang/hotime/db" "errors" "fmt" "io/ioutil" diff --git a/code/template.go b/code/template.go index bfd18d2..f1e6202 100644 --- a/code/template.go +++ b/code/template.go @@ -3,8 +3,8 @@ package code var InitTpt = `package {{name}} import ( - . "../../../hotime" - . "../../../hotime/common" + . "code.hoteas.com/golang/hotime" + . "code.hoteas.com/golang/hotime/common" ) var ID = "{{id}}" @@ -69,8 +69,8 @@ var Project = Proj{ var CtrTpt = `package {{name}} import ( - . "../../../hotime" - . "../../../hotime/common" + . "code.hoteas.com/golang/hotime" + . "code.hoteas.com/golang/hotime/common" "strings" ) diff --git a/context.go b/context.go index d85849e..111f99b 100644 --- a/context.go +++ b/context.go @@ -1,9 +1,9 @@ package hotime import ( - . "./cache" - . "./common" - . "./db" + . "code.hoteas.com/golang/hotime/cache" + . "code.hoteas.com/golang/hotime/common" + . "code.hoteas.com/golang/hotime/db" "encoding/json" "net/http" ) diff --git a/db/hotimedb.go b/db/hotimedb.go index e524ae7..8a1ea23 100644 --- a/db/hotimedb.go +++ b/db/hotimedb.go @@ -1,8 +1,8 @@ package db import ( - "../cache" - . "../common" + "code.hoteas.com/golang/hotime/cache" + . "code.hoteas.com/golang/hotime/common" "database/sql" "encoding/json" "errors" diff --git a/dri/aliyun/company.go b/dri/aliyun/company.go index ad5fc49..7b91e13 100644 --- a/dri/aliyun/company.go +++ b/dri/aliyun/company.go @@ -1,7 +1,7 @@ package aliyun import ( - . "../../common" + . "code.hoteas.com/golang/hotime/common" "fmt" "io/ioutil" "net/http" diff --git a/dri/download/download.go b/dri/download/download.go index 066e3cc..7b74339 100644 --- a/dri/download/download.go +++ b/dri/download/download.go @@ -1,8 +1,8 @@ package download import ( - . "../../common" "bytes" + . "code.hoteas.com/golang/hotime/common" "io" "io/ioutil" "net/http" diff --git a/dri/tencent/company.go b/dri/tencent/company.go index b1fb22a..1b032dc 100644 --- a/dri/tencent/company.go +++ b/dri/tencent/company.go @@ -1,7 +1,7 @@ package tencent import ( - . "../../common" + . "code.hoteas.com/golang/hotime/common" "crypto/hmac" "crypto/sha1" "encoding/base64" diff --git a/dri/upload/upload.go b/dri/upload/upload.go index a0b59d6..9746d00 100644 --- a/dri/upload/upload.go +++ b/dri/upload/upload.go @@ -1,7 +1,7 @@ package upload import ( - . "../../common" + . "code.hoteas.com/golang/hotime/common" "errors" "io" "mime/multipart" diff --git a/example/main.go b/example/main.go index 2d5cfc7..86c3cd7 100644 --- a/example/main.go +++ b/example/main.go @@ -1,8 +1,8 @@ package main import ( - "../../hotime" - //"../dri/aliyun" + "code.hoteas.com/golang/hotime" + //"code.hoteas.com/golang/hotime/dri/aliyun" "fmt" "time" ) @@ -12,4 +12,5 @@ func main() { fmt.Println(date, date.Unix()) //fmt.Println("0123456"[1:7]) appIns := hotime.Init("config/config.json") + appIns.Run(hotime.Router{}) } diff --git a/session.go b/session.go index 33079b4..1faf14d 100644 --- a/session.go +++ b/session.go @@ -1,8 +1,8 @@ package hotime import ( - . "./cache" - . "./common" + . "code.hoteas.com/golang/hotime/cache" + . "code.hoteas.com/golang/hotime/common" ) //session对象 diff --git a/var.go b/var.go index 7c2b1b1..2113e62 100644 --- a/var.go +++ b/var.go @@ -1,7 +1,7 @@ package hotime import ( - . "./common" + . "code.hoteas.com/golang/hotime/common" ) var IsRun = false //当前状态