diff --git a/cmd/gitfetch/gitfetch.go b/cmd/gitfetch/gitfetch.go index fd4f758..a30b98c 100644 --- a/cmd/gitfetch/gitfetch.go +++ b/cmd/gitfetch/gitfetch.go @@ -13,11 +13,13 @@ import ( ) func main() { - GetYear() + year := time.Now().Year() + for i := year - 4; i <= year; i++ { + GetYear(i) + } } -func GetYear() { - year := time.Now().Year() +func GetYear(year int) { yearLength := 365 if year%4 == 0 { yearLength++