We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go-shopify/goshopify.go
Line 245 in f29f869
How is my code working now:
import ( goshopify "github.com/bold-commerce/go-shopify" "net/url" ) func NewClient(app goshopify.App, shopName string, token string) (*goshopify.Client, error){ _, err := url.Parse(shopName) if err != nil { return nil, err } return app.NewClient(shopName, token), nil }
I think it would be right:
func (a App) NewClient(shopName, token string, opts ...Option) (*Client, error) { return NewClient(a, shopName, token, opts...) } func NewClient(app App, shopName, token string, opts ...Option) (*Client, error) { baseURL, err := url.Parse(ShopBaseUrl(shopName)) if err != nil { return nil, err } //..... }
Or:
func (a App) NewClient(shopName url.URL, token string, opts ...Option) (*Client, error) { return NewClient(a, shopName, token, opts...) } func NewClient(app App, shopName url.URL, token string, opts ...Option) (*Client, error) { baseURL := shopName //..... }
The text was updated successfully, but these errors were encountered:
Should make this change for the upcoming breaking-changes release due to #5
Sorry, something went wrong.
Tackling this in #258
v4.0.0 was released - this should be fixed.
No branches or pull requests
go-shopify/goshopify.go
Line 245 in f29f869
How is my code working now:
I think it would be right:
Or:
The text was updated successfully, but these errors were encountered: