示例#1
0
文件: assets.go 项目: nathankerr/soar
func main() {
	assets := NewAssets()
	server, err := soar.NewServer(":1234", assets)
	if err != nil {
		panic(err)
	}

	log.Println("Starting Assets Server")
	server.Serve()
}
示例#2
0
文件: render.go 项目: nathankerr/soar
func main() {
	render := new(Render)
	server, err := soar.NewServer(":1233", render)
	if err != nil {
		panic(err)
	}

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