extract common into common.go

This commit is contained in:
2023-01-30 22:09:43 -08:00
parent 8b46956ed9
commit 95963a2472
3 changed files with 30 additions and 30 deletions

View File

@@ -11,14 +11,6 @@ import (
"github.com/taigrr/mg/parse"
)
type (
Repo git.Repository
CommitSet struct {
Commits []types.Commit
Year int
}
)
func GlobalFrequencyChan(year int, authors []string) (types.YearFreq, error) {
yearLength := 365
if year%4 == 0 {