mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 10:02:10 +08:00
fix typo to bug
This commit is contained in:
parent
4a1d657795
commit
8d836800dd
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user