Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
fever-ch
GitHub Repository: fever-ch/go-google-sites-proxy
Path: blob/master/main.go
505 views
1
package main
2
3
import (
4
"fmt"
5
"github.com/fever-ch/go-google-sites-proxy/common"
6
log "github.com/sirupsen/logrus"
7
"os"
8
)
9
10
var gitVersion = ""
11
12
var buildDate = ""
13
14
func main() {
15
if gitVersion != "" {
16
common.ProgramInfo.Git = gitVersion
17
}
18
if buildDate != "" {
19
common.ProgramInfo.BuildDate = buildDate
20
}
21
log.Info(fmt.Sprintf("GGSP %s %s", common.ProgramInfo.Git, common.ProgramInfo.BuildDate))
22
23
if len(os.Args) != 2 {
24
log.Fatal("Cmd: " + os.Args[0] + " config-file")
25
}
26
confFile := os.Args[1]
27
28
startDaemonFromFile(confFile)
29
}
30
31