https://codereview.appspot.com/6945074/diff/3004/gotour/local.go File gotour/local.go (right): https://codereview.appspot.com/6945074/diff/3004/gotour/local.go#newcode199 gotour/local.go:199: for { On 2012/12/18 22:22:04, adg wrote: > If ...
11 years, 4 months ago
(2012-12-18 23:07:08 UTC)
#4
https://codereview.appspot.com/6945074/diff/3004/gotour/local.go
File gotour/local.go (right):
https://codereview.appspot.com/6945074/diff/3004/gotour/local.go#newcode199
gotour/local.go:199: for {
On 2012/12/18 22:22:04, adg wrote:
> If someone runs gotour -http=:8080, this loop will run forever. Please add a
> maximum number of iterations.
Done
> There should be some logic to detect whether a hostname is provided, and if
not
> it should substitute 127.0.0.1 (I guess).
Done. Actually, this change makes it impossible to bind on wildcard address,
however, i think it is correct due to security implications (if the user wants,
he can
always bind to a specific network address).
https://codereview.appspot.com/6945074/diff/3004/gotour/local.go#newcode205
gotour/local.go:205: time.Sleep(10 * time.Millisecond)
On 2012/12/18 22:22:04, adg wrote:
> do we really want to try 100 times per second? 100 milliseconds should be ok.
Done.
https://codereview.appspot.com/6945074/diff/3004/gotour/local.go#newcode221
gotour/local.go:221: log.Printf("A browser window should open, if not, please
visit %s manually", url)
On 2012/12/18 22:22:04, adg wrote:
> s/, if/. If/
Both done.
On Wed, Dec 19, 2012 at 7:19 AM, <adg@golang.org> wrote: > We should add a ...
11 years, 4 months ago
(2012-12-18 23:21:41 UTC)
#8
On Wed, Dec 19, 2012 at 7:19 AM, <adg@golang.org> wrote:
> We should add a flag -openbrowser=true so that you can run the tour
> without opening a browser.
>
in fact, my local version had just that option to facilitate the testing of
various -http
parameters.
*** Submitted as https://code.google.com/p/go-tour/source/detail?r=680e321d81fd *** gotour: automatically open browser window if possible Fixes issue 51. ...
11 years, 4 months ago
(2012-12-20 18:52:34 UTC)
#13
Issue 6945074: code review 6945074: gotour: automatically open browser window if possible
(Closed)
Created 11 years, 4 months ago by minux1
Modified 11 years, 4 months ago
Reviewers:
Base URL:
Comments: 12