Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 336 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 336 Bytes

netrpc

Reconnectable net/rpc client.

Getting Started

var client = netprc.NewClient(addr)
func CalculateCart(cart *Cart) (*Cart, error) {
        var result Cart
        if err := client.Call("offer.CalculateCart", cart, &result); err != nil {
                return nil, err
        }
        return &result, nil
}