1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-18 02:16:23 -05:00
OpenDiablo2/main.go

26 lines
557 B
Go
Raw Normal View History

2019-10-24 09:31:59 -04:00
package main
import (
"log"
"github.com/OpenDiablo2/OpenDiablo2/d2app"
2019-10-24 09:31:59 -04:00
)
2019-11-06 22:12:15 -05:00
// GitBranch is set by the CI build process to the name of the branch
//nolint:gochecknoglobals // This is filled in by the build system
2020-12-16 02:11:28 -05:00
var GitBranch string = "local"
2019-11-06 22:12:15 -05:00
// GitCommit is set by the CI build process to the commit hash
//nolint:gochecknoglobals // This is filled in by the build system
2020-12-16 02:11:28 -05:00
var GitCommit string = "build"
2019-10-24 09:31:59 -04:00
func main() {
log.SetFlags(log.Lshortfile)
instance := d2app.Create(GitBranch, GitCommit)
if err := instance.Run(); err != nil {
return
2020-07-08 09:16:16 -04:00
}
}