19 lines
295 B
Go
19 lines
295 B
Go
package main
|
|
|
|
import (
|
|
. "code.hoteas.com/golang/hotime"
|
|
"code.hoteas.com/golang/hotime/example/app"
|
|
)
|
|
|
|
func main() {
|
|
|
|
appIns := Init("config/config.json")
|
|
appIns.SetConnectListener(func(that *Context) (isFinished bool) {
|
|
|
|
return isFinished
|
|
})
|
|
|
|
appIns.Run(Router{"app": app.AppProj})
|
|
|
|
}
|