stephen mcquay
039819c1f0
According to [the wiki](https://github.com/twitchtv/twirp/wiki/Best-Practices)
15 lines
258 B
Go
15 lines
258 B
Go
package hwt
|
|
|
|
import (
|
|
"context"
|
|
fmt "fmt"
|
|
|
|
pb "mcquay.me/hwt/rpc/hwt"
|
|
)
|
|
|
|
type Server struct{}
|
|
|
|
func (s *Server) Hello(ctx context.Context, req *pb.HelloReq) (*pb.HelloResp, error) {
|
|
return &pb.HelloResp{Text: fmt.Sprintf("echo: %v", req.Subject)}, nil
|
|
}
|