Added error

This commit is contained in:
paulo committed 2021-10-16 08:50:00 -03:00
1 parent 6eda8f5249
commit a9dacee062
2 files changed
+25

No files matched your search

+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()