Esempio n. 1
0
func main() {
	assets := NewAssets()
	server, err := soar.NewServer(":1234", assets)
	if err != nil {
		panic(err)
	}

	log.Println("Starting Assets Server")
	server.Serve()
}
Esempio n. 2
0
func main() {
	render := new(Render)
	server, err := soar.NewServer(":1233", render)
	if err != nil {
		panic(err)
	}

	log.Println("Starting Render Server")
	server.Serve()
}