Added error
This commit is contained in:
@@ -426,6 +426,15 @@ type Series struct {
|
||||
Year int `json:"year"`
|
||||
}
|
||||
|
||||
type Error struct {
|
||||
Feature string `json:"feature,omitempty"`
|
||||
When time.Time `json:"when"`
|
||||
Err string `json:"err,omitempty"`
|
||||
Stack string `json:"stack,omitempty"`
|
||||
InputData string `json:"input_data,omitempty"`
|
||||
Details string `json:"details,omitempty"`
|
||||
}
|
||||
|
||||
func (s *Series) SetTime(t time.Time) {
|
||||
s.When = t
|
||||
s.Day = t.Day()
|
||||
|
||||
Reference in New Issue
Block a user