Updates for best practices

According to [the wiki](https://github.com/twitchtv/twirp/wiki/Best-Practices)
This commit is contained in:
sm
2018-01-20 08:38:58 -08:00
parent db3de8c61f
commit 039819c1f0
6 changed files with 20 additions and 17 deletions
+2 -1
View File
@@ -5,11 +5,12 @@ import (
"net/http"
"mcquay.me/hwt"
pb "mcquay.me/hwt/rpc/hwt"
)
func main() {
s := &hwt.Server{}
th := hwt.NewHelloWorldServer(s, nil)
th := pb.NewHelloWorldServer(s, nil)
if err := http.ListenAndServe(":8080", th); err != nil {
log.Fatalf("listen and serve: %v", err)
}