Added error

This commit is contained in:
2021-10-16 08:50:00 -03:00
parent 6eda8f5249
commit a9dacee062
2 changed files with 25 additions and 0 deletions
+9
View File
@@ -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()