2018-01-16 20:57:04 -08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"mcquay.me/hwt"
|
2018-01-20 08:38:58 -08:00
|
|
|
pb "mcquay.me/hwt/rpc/hwt"
|
2018-01-16 20:57:04 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
s := &hwt.Server{}
|
2018-01-20 08:38:58 -08:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|