package jackett type Config struct { Host string APIKey string } type Client struct { conf Config } func NewClient(conf Config) *Client { return &Client{ conf: conf, } } func (c *Client) buildUrl(path string) string { return c.conf.Host + path }