Henry-Sarabia / igdb

Go client for the Internet Game Database API
https://api.igdb.com/
MIT License
81 stars 17 forks source link

Missing Field for Website Struct #105

Open HammerMeetNail opened 3 years ago

HammerMeetNail commented 3 years ago

Hello,

website.go has the following struct:

type Website struct {
    ID       int             `json:"id"`
    Category WebsiteCategory `json:"category"`
    Trusted  bool            `json:"trusted"`
    URL      string          `json:"url"`
}

Game is also available via the API, but not exposed in this struct. See https://api-docs.igdb.com/#website

Can we add it? Should look like:

type Website struct {
    ID       int             `json:"id"`
    Category WebsiteCategory `json:"category"`
        Game     int             `json:"game"`
    Trusted  bool            `json:"trusted"`
    URL      string          `json:"url"`
}

Let me know if you want me to open a PR with this change. Thanks!