Skip to content
New issue

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

Separate Request/Response Objects #1

Open
iamyashrs opened this issue Apr 9, 2018 · 0 comments
Open

Separate Request/Response Objects #1

iamyashrs opened this issue Apr 9, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@iamyashrs
Copy link
Member

Right now, the library is built as a system build on both concrete request/response objects. Helpers combine the both of them into one.

But since the request/response objects are building blocks of the helpers, we can separate them out into 2 new sub-packages inside the repo. This will give us a clear usage and better docs.

import (
    "github.com/go-india/zomato/req"
    "github.com/go-india/zomato/resp"
    "github.com/go-india/zomato"
)

The client and its helpers are the ultimate API/Usage of this library.
Other types and objects are building blocks of that.

@iamyashrs iamyashrs added the enhancement New feature or request label Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant