Simple rpc client for json-rpc/http.
View the docs.
c := jsonrpc.NewClient("http://localhost:4000/rpc")
err := c.Call("Coupon.GetById", map[string]string{"id": "trial"}, &res)
c, _ := jsonrpc.NewClientWithOptions("http://localhost:4000/rpc", jsonrpc.UserAgent("rpc_bot/1.0"))
err := c.Call("Coupon.Apply", map[string]string{"account_id": "abcd1234", "coupon_id": "trial"}, &res)
MIT