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\"}"

最新回复(0)
/jishuT0F_2FEUeVNQMKT0dy72dAwqcMr5Ge_2Fh6kVsQysw_3D_3D4858510
8 简首页