mirror of
https://github.com/taigrr/gico.git
synced 2026-04-02 03:09:07 -07:00
23 lines
333 B
Go
23 lines
333 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
|
|
git "github.com/go-git/go-git/v5"
|
|
|
|
"github.com/taigrr/gico/commits"
|
|
)
|
|
|
|
type Repo git.Repository
|
|
|
|
func main() {
|
|
year := time.Now().Year() - 1
|
|
authors := []string{"Groot"}
|
|
gfreq, err := commits.GlobalFrequencyChan(year, authors)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
fmt.Print(gfreq.String())
|
|
}
|