go micro踩坑之路:invalid character '\'' looking for beginning of value

go micro官方文档给的实例里面

Make an RPC call via the CLI. The query is sent as json.

micro call go.micro.srv.example Example.Call '{"name": "John"}'

在windows控制台中执行会返回:
 invalid character '\'' looking for beginning of value

经过测试:正确写法是:

micro call go.micro.srv.example Example.Call "{\"name\":\"John\"}"

发布了44 篇原创文章 · 获赞 27 · 访问量 19万+

猜你喜欢

转载自blog.csdn.net/m0_38031406/article/details/90699210
今日推荐