Versions in this module Expand all Collapse all v0 v0.0.2 Mar 28, 2021 v0.0.1 Mar 27, 2021 Changes in this version + var ErrorBadDateFormat = errors.New("Incorrect Date Format") + type APIClient struct + Client *http.Client + RequestURL string + func NewClient(RequestURL string) *APIClient + func (c *APIClient) Get(country string, from, to time.Time, latest bool) (APIResponse, error) + type APIResponse struct + Country string + Province []string + RawData RawData + TimeSeries TimeSeries + func (r *APIResponse) FormatResponse(from, to time.Time, latest bool) error + type Day struct + Cases int + Country string + Date time.Time + Deaths int + Recovered int + type RawData struct + Cases map[string]int + Deaths map[string]int + Recovered map[string]int + type TimeSeries struct + Data []Day + func (ts *TimeSeries) Filter(from, to time.Time, latest bool) + func (ts *TimeSeries) Order() + func (ts *TimeSeries) Print(output io.Writer, format string)