Updates for best practices
According to [the wiki](https://github.com/twitchtv/twirp/wiki/Best-Practices)
This commit is contained in:
+2
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user