forked from OpenDiablo2/OpenDiablo2
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmain.go
More file actions
29 lines (21 loc) · 618 Bytes
/
main.go
File metadata and controls
29 lines (21 loc) · 618 Bytes
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
package main
import (
"log"
"github.com/OpenDiablo2/OpenDiablo2/d2app"
)
// GitBranch is set by the CI build process to the name of the branch
//nolint:gochecknoglobals // This is filled in by the build system
var GitBranch string = "local"
// GitCommit is set by the CI build process to the commit hash
//nolint:gochecknoglobals // This is filled in by the build system
var GitCommit string = "build"
func main() {
log.SetFlags(log.Lshortfile)
instance := d2app.Create(GitBranch, GitCommit)
if instance.ShouldTerminateImmediately() {
return
}
if err := instance.Run(); err != nil {
panic(err)
}
}