go-india/zomato

Separate Request/Response Objects

iamyashrs opened this issue · 0 comments

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.