-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
41 lines (31 loc) · 857 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
*/
package main
import (
"colligendis/cmd/root"
"colligendis/internal/common/structs"
_ "embed"
)
//go:embed templates/tex/preamble
var preamble []byte
//go:embed templates/tex/stats.tmpl
var template []byte
//go:embed convert_csv.sh
var convertScript []byte
func main() {
var tmpls []structs.TemplateStruct
var preambleStruct structs.TemplateStruct
preambleStruct.Name = "preamble"
preambleStruct.Data = preamble
tmpls = append(tmpls, preambleStruct)
var statsStruct structs.TemplateStruct
statsStruct.Name = "stats.tmpl"
statsStruct.Data = template
tmpls = append(tmpls, statsStruct)
var convertScriptStruct structs.TemplateStruct
convertScriptStruct.Name = "convert_csv.sh"
convertScriptStruct.Data = convertScript
tmpls = append(tmpls, convertScriptStruct)
root.Execute(tmpls)
}