Skip to content

Commit

Permalink
feat(main): print url
Browse files Browse the repository at this point in the history
  • Loading branch information
riezebosch committed Sep 20, 2019
1 parent c4d1cf8 commit 29fbb53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
}

0 comments on commit 29fbb53

Please sign in to comment.