Files
hotime/example/main.go
T

18 lines
298 B
Go
Raw Normal View History

2022-07-11 11:07:17 +08:00
package main
import (
. "code.hoteas.com/golang/hotime"
2026-03-20 10:46:51 +08:00
"code.hoteas.com/golang/hotime/example/app"
2022-07-11 11:07:17 +08:00
)
func main() {
appIns := Init("config/config.json")
2022-08-01 03:40:09 +08:00
appIns.SetConnectListener(func(that *Context) (isFinished bool) {
return isFinished
})
2022-08-02 03:02:57 +08:00
appIns.Run(Router{
2026-03-20 10:46:51 +08:00
"app": app.Project,
})
2022-07-11 11:07:17 +08:00
}