Konfi-Castle-Kasino/pkg/windows/native.go
kolaente 99b486c73f
All checks were successful
continuous-integration/drone/push Build is passing
Added opening in browser windows
2019-09-04 22:59:33 +02:00

19 lines
395 B
Go

package windows
import (
"git.kolaente.de/konrad/Konfi-Castle-Kasino/pkg/config"
"github.com/labstack/gommon/log"
"github.com/pkg/browser"
)
func OpenNativeWindows() {
err := browser.OpenURL("http://127.0.0.1" + config.GetInterface())
if err != nil {
log.Error(err)
}
err = browser.OpenURL("http://127.0.0.1" + config.GetInterface() + "/admin")
if err != nil {
log.Error(err)
}
}