|
|
@ -1,7 +1,7 @@ |
|
|
|
## 内部使用基于go-chi的web框架 |
|
|
|
|
|
|
|
# 框架引入 |
|
|
|
> go get -u github.com/ouxuanserver/osmanthuswine |
|
|
|
> go get -u git.ouxuan.net/tommy/osmanthuswine |
|
|
|
# 开始 |
|
|
|
... |
|
|
|
|
|
|
@ -33,8 +33,8 @@ package main |
|
|
|
|
|
|
|
import ( |
|
|
|
"./app/index" |
|
|
|
"github.com/ouxuanserver/osmanthuswine" |
|
|
|
"github.com/ouxuanserver/osmanthuswine/src/core" |
|
|
|
"git.ouxuan.net/tommy/osmanthuswine" |
|
|
|
"git.ouxuan.net/tommy/osmanthuswine/src/core" |
|
|
|
) |
|
|
|
|
|
|
|
func main() { |
|
|
@ -52,7 +52,7 @@ func main() { |
|
|
|
package index |
|
|
|
|
|
|
|
import ( |
|
|
|
"github.com/ouxuanserver/osmanthuswine/src/core" |
|
|
|
"git.ouxuan.net/tommy/osmanthuswine/src/core" |
|
|
|
) |
|
|
|
|
|
|
|
type Index struct { |
|
|
@ -186,7 +186,7 @@ max_open_conn为可支持最大连接数(未测试是否可用 |
|
|
|
package index |
|
|
|
|
|
|
|
import ( |
|
|
|
"github.com/ouxuanserver/osmanthuswine/src/core" |
|
|
|
"git.ouxuan.net/tommy/osmanthuswine/src/core" |
|
|
|
"gopkg.in/olahol/melody.v1" |
|
|
|
) |
|
|
|
|
|
|
|