hwt/cmd/hwtd/main.go

18 lines
268 B
Go
Raw Normal View History

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