mirror of
https://github.com/taigrr/gico.git
synced 2026-04-02 03:09:07 -07:00
gitgraph term and svg generation complete
This commit is contained in:
30
bin/cli/cli.go
Normal file
30
bin/cli/cli.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"time"
|
||||
|
||||
"github.com/taigrr/gitgraph/term"
|
||||
)
|
||||
|
||||
func init() {
|
||||
rand.Seed(time.Now().UnixMilli())
|
||||
}
|
||||
func main() {
|
||||
freq := []int{}
|
||||
for i := 0; i < 7; i++ {
|
||||
freq = append(freq, rand.Int())
|
||||
}
|
||||
fmt.Println("week:")
|
||||
term.GetWeekUnicode(freq)
|
||||
fmt.Println()
|
||||
fmt.Println()
|
||||
fmt.Println()
|
||||
freq = []int{}
|
||||
for i := 0; i < 365; i++ {
|
||||
freq = append(freq, rand.Int())
|
||||
}
|
||||
fmt.Println("year:")
|
||||
term.GetYearUnicode(freq)
|
||||
}
|
||||
Reference in New Issue
Block a user