forked from jovandeginste/workout-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
37 lines (32 loc) · 760 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
package main
import (
appassets "github.com/jovandeginste/workout-tracker/assets"
"github.com/jovandeginste/workout-tracker/pkg/app"
apptranslations "github.com/jovandeginste/workout-tracker/translations"
appviews "github.com/jovandeginste/workout-tracker/views"
)
var (
gitRef = "0.0.0-dev"
gitRefName = "local"
gitRefType = "local"
gitCommit = "local"
buildTime = "now"
)
func main() {
a := app.NewApp(app.Version{
BuildTime: buildTime,
Ref: gitRef,
RefName: gitRefName,
RefType: gitRefType,
Sha: gitCommit,
})
a.Assets = appassets.FS()
a.Views = appviews.FS()
a.Translations = apptranslations.FS()
if err := a.Configure(); err != nil {
panic(err)
}
if err := a.Serve(); err != nil {
panic(err)
}
}