Konfi-Castle-Kasino/pkg/windows/native.go
kolaente 4de30c61a0
All checks were successful
continuous-integration/drone/push Build is passing
Fixed lint
2019-09-05 21:35:07 +02:00

20 lines
438 B
Go

package windows
import (
"git.kolaente.de/konrad/Konfi-Castle-Kasino/pkg/config"
"github.com/labstack/gommon/log"
"github.com/pkg/browser"
)
// OpenNativeWindows opens browser windows
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)
}
}