This commit is contained in:
sm
2018-01-16 21:02:46 -08:00
commit a174bcaa72
7 changed files with 113 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
package hwt
import (
"context"
fmt "fmt"
)
type Server struct{}
func (s *Server) Hello(ctx context.Context, req *HelloReq) (*HelloResp, error) {
return &HelloResp{Text: fmt.Sprintf("echo: %v", req.Subject)}, nil
}