hotime/example/main.go

18 lines
232 B
Go
Raw Normal View History

2022-07-11 11:07:17 +08:00
package main
import (
. "code.hoteas.com/golang/hotime"
)
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
2022-08-20 11:20:03 +08:00
appIns.Run(Router{})
2022-07-11 11:07:17 +08:00
}