hwt/cmd/hwtd/main.go

17 lines
241 B
Go
Raw Normal View History

2018-01-16 20:57:04 -08:00
package main
import (
"log"
"net/http"
"mcquay.me/hwt"
)
func main() {
s := &hwt.Server{}
th := hwt.NewHelloWorldServer(s, nil)
if err := http.ListenAndServe(":8080", th); err != nil {
log.Fatalf("listen and serve: %v", err)
}
}