hotime/example/main.go

19 lines
295 B
Go
Raw Permalink Normal View History

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