Example #1
0
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)
}
Example #2
0
func main() {
	xweb.RootApp().AppConfig.SessionOn = false
	xweb.AddRouter("/", &MainAction{})
	xweb.Run("0.0.0.0:9999")
}
Example #3
0
func main() {
	xweb.AddRouter("/", &MainAction{})
	xweb.Run("0.0.0.0:9999")
}