mirror of
https://github.com/taigrr/gico.git
synced 2026-04-02 03:09:07 -07:00
work on svg generation
This commit is contained in:
21
main.go
Normal file
21
main.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/taigrr/gitgraph/graph"
|
||||
)
|
||||
|
||||
type DayCount [366]int
|
||||
|
||||
func main() {
|
||||
svg := graph.GetImage([]int{1, 2, 5, 6, 5, 4, 5, 8, 7, 43, 2, 3})
|
||||
f, err := os.Create("out.svg")
|
||||
if err != nil {
|
||||
fmt.Printf("Error: %v\n", err)
|
||||
return
|
||||
}
|
||||
defer f.Close()
|
||||
svg.WriteTo(f)
|
||||
}
|
||||
Reference in New Issue
Block a user