Chaining of config
stanleynguyen opened this issue · 0 comments
stanleynguyen commented
Instead of having all config inside constructor's params
Line 47 in 4e59149
We can do chaining like below
// because secretKey is required param
func New(secretKey string) {}
func (c *Client) WithAPIRequester(r *APIRequester) *Client {}
func (c *Client) WithXenditURL(u string) *Client {}