func (hc *XKCDClient) SetTimeout(d time.Duration) {
	hc.client.Timeout = d
}
SetTimeout overrides the default ClientTimeout
package client
import (
	"encoding/json"
	"fmt"
	"io"
	"net/http"
	"os"
	"path"
	"path/filepath"
	"time"
	"github.com/erybz/go-grab-xkcd/model"
)
const (
	BaseURL string = "https://xkcd.com"
	DefaultClientTimeout time.Duration = 30 * time.Second
	LatestComic ComicNumber = 0
)
type ComicNumber int
type XKCDClient struct {
	client  *http.Client
	baseURL string
}
func NewXKCDClient() *XKCDClient {
	return &XKCDClient{
		client: &http.Client{
			Timeout: DefaultClientTimeout,
		},
		baseURL: BaseURL,
	}
}