modified NewClient to return ptr
This commit is contained in:
@@ -119,8 +119,8 @@ type SnipcartNotificationResponse struct {
|
|||||||
SentOn time.Time `json:"sentOn"`
|
SentOn time.Time `json:"sentOn"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewClient(snipcartApiKey string) Client {
|
func NewClient(snipcartApiKey string) *Client {
|
||||||
return Client{
|
return &Client{
|
||||||
SnipcartKey: snipcartApiKey,
|
SnipcartKey: snipcartApiKey,
|
||||||
AuthBase64: base64.StdEncoding.EncodeToString([]byte(snipcartApiKey + ":")),
|
AuthBase64: base64.StdEncoding.EncodeToString([]byte(snipcartApiKey + ":")),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user