From 29fbb53a07f0a96a8cf263402e7d16e9f976d4e6 Mon Sep 17 00:00:00 2001 From: Manuel Riezebosch Date: Fri, 20 Sep 2019 13:47:35 +0200 Subject: [PATCH] feat(main): print url --- Main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Main.go b/Main.go index 27ce6e0..051e5af 100644 --- a/Main.go +++ b/Main.go @@ -14,6 +14,9 @@ func main() { panic(err) } - browser.OpenURL(fmt.Sprintf("http://localhost:%v", listener.Addr().(*net.TCPAddr).Port)) + url := fmt.Sprintf("http://localhost:%v", listener.Addr().(*net.TCPAddr).Port) + fmt.Print(url) + + browser.OpenURL(url) panic(http.Serve(listener, Routes())) }