stephen mcquay
039819c1f0
According to [the wiki](https://github.com/twitchtv/twirp/wiki/Best-Practices)
18 lines
268 B
Go
18 lines
268 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
"mcquay.me/hwt"
|
|
pb "mcquay.me/hwt/rpc/hwt"
|
|
)
|
|
|
|
func main() {
|
|
s := &hwt.Server{}
|
|
th := pb.NewHelloWorldServer(s, nil)
|
|
if err := http.ListenAndServe(":8080", th); err != nil {
|
|
log.Fatalf("listen and serve: %v", err)
|
|
}
|
|
}
|