Пример #1
0
func main() {
	var server1, server2 web.Server

	server1.Get("/(.*)", hello1)
	go server1.Run("0.0.0.0:9999")
	server2.Get("/(.*)", hello2)
	go server2.Run("0.0.0.0:8999")
	<-make(chan int)
}
Пример #2
0
func main() {
	var server1, server2 web.Server

	server1.Get("/(.*)", hello1)
	go server1.Run(":3000")
	server2.Get("/(.*)", hello2)
	go server2.Run(":4242")
	<-make(chan int)
}