WIP: use gox for cross platform compiling

This commit is contained in:
Christoph Haas
2021-02-24 22:16:03 +01:00
parent 9b10d099b6
commit 4fe4d93e0d
4 changed files with 39 additions and 8 deletions

View File

@@ -12,13 +12,15 @@ import (
"github.com/sirupsen/logrus"
)
var Version string = "unknown (local build)"
func main() {
_ = setupLogger(logrus.StandardLogger())
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP)
logrus.Infof("Starting WireGuard Portal Server...")
logrus.Infof("Starting WireGuard Portal Server [%s]...", Version)
// Context for clean shutdown
ctx, cancel := context.WithCancel(context.Background())