-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.go
33 lines (27 loc) · 779 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
package main
import (
"log"
"github.com/waltzofpearls/reckon/agent"
"github.com/waltzofpearls/reckon/config"
"go.uber.org/zap"
)
func main() {
logger, err := zap.NewProduction()
if err != nil {
log.Fatal("an error occurred creating logger", err)
}
defer logger.Sync()
build := config.NewBuildInfo(version, commit, date, goVersion, pythonVersion, goreleaserVersion)
if err := agent.Run(logger, build); err != nil {
logger.Fatal("an error occurred running reckon", zap.Error(err))
}
}
// these build info variables will be set by ldflags during build time
var (
version = "0.0.0"
commit = "qwerty123456"
date = "0000-00-00T00:00:00Z"
goVersion = "0.0.0"
pythonVersion = "0.0.0"
goreleaserVersion = "0.0.0"
)