Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5482cc70ca
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.403 kb
package main
import (
"github.com/hoisie/web.go"
)
func hello1(val string) string { return "hello1 " + val }
func hello2(val string) string { return "hello2 " + val }
func main() {
var server1 web.Server
var 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)
}
Jump to Line
Something went wrong with that request. Please try again.