예제 #1
0
파일: main.go 프로젝트: tempbottle/xweb
func main() {
	xweb.RootApp().AppConfig.SessionOn = false
	xweb.AddRouter("/", &MainAction{})

	config, err := xweb.SimpleTLSConfig("cert.pem", "key.pem")
	if err != nil {
		fmt.Println(err)
		return
	}

	xweb.RunTLS("0.0.0.0:9999", config)
}
예제 #2
0
파일: hello.go 프로젝트: tempbottle/xweb
func main() {
	xweb.RootApp().AppConfig.SessionOn = false
	xweb.AddRouter("/", &MainAction{})
	xweb.Run("0.0.0.0:9999")
}
예제 #3
0
파일: hook.go 프로젝트: tempbottle/xweb
func main() {
	xweb.AddRouter("/", &MainAction{})
	xweb.Run("0.0.0.0:9999")
}