move types to types package

This commit is contained in:
2023-01-28 00:39:27 -08:00
parent c4a74123ef
commit dcf43adf95
3 changed files with 43 additions and 45 deletions

View File

@@ -4,21 +4,21 @@ import (
"time"
)
type Month string
type Commit struct {
LOC int `json:"loc,omitempty"`
Message string `json:"message,omitempty"`
TimeStamp time.Time `json:"ts,omitempty"`
Author string `json:"author,omitempty"`
Repo string `json:"repo,omitempty"`
Path string `json:"path,omitempty"`
}
type DataSet map[time.Time]WorkDay
type WorkDay struct {
Day time.Time `json:"day"`
Count int `json:"count"`
Commits []Commit `json:"commits,omitempty"`
}
type (
Month string
Commit struct {
LOC int `json:"loc,omitempty"`
Message string `json:"message,omitempty"`
TimeStamp time.Time `json:"ts,omitempty"`
Author string `json:"author,omitempty"`
Repo string `json:"repo,omitempty"`
Path string `json:"path,omitempty"`
}
DataSet map[time.Time]WorkDay
YearFreq []int
WorkDay struct {
Day time.Time `json:"day"`
Count int `json:"count"`
Commits []Commit `json:"commits,omitempty"`
}
)