add NewDataSet call

This commit is contained in:
2022-06-19 16:24:54 -06:00
parent b25af96bcc
commit 528c1c0a87
2 changed files with 5 additions and 3 deletions

View File

@@ -50,6 +50,10 @@ type Commit struct {
type DataSet map[time.Time]WorkDay
func NewDataSet() DataSet {
return make(DataSet)
}
type WorkDay struct {
Day time.Time `json:"day"`
Count int `json:"count"`