Files
web/examples/multiserver.go
Michael Hoisie 2de8b2a91a Use standard tab indentation for web.go source files
This is a whitespace change only.

Run all the source files through `gofmt`. Previously, all web.go files
were indented using four spaces. Convert all the spaces into tabs.

Also, remove `Makefile`, which contained the old formatting command.
2016-07-30 08:36:34 -07:00

21 lines
376 B
Go

package main
import (
"github.com/hoisie/web"
)
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)
}