fix typo to bug

This commit is contained in:
thinkerou 2018-06-22 12:24:00 +08:00
parent 4a1d657795
commit 8d836800dd

View File

@ -26,7 +26,7 @@ func main() {
// Contact the server and print out its response.
req := &pb.HelloRequest{Name: name}
res, err := client.SayHello(g, req)
res, err := client.SayHello(c, req)
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{
"error": err.Error(),