I am trying to get godoc -http to work but o cannot get the browser to connect to localhost. Having trouble finding posts from anyone with a similar issue, What can i try to troubleshoot this?
I think it was my environment i could not even serve up a simple web page, i re installed and did not change goroot and also had the go folder in the default location and everything worked.
I am using WSL. not sure why it did not install to the default in the first place, but [the third time] it worked and the go folder was where it should be. Everything worked including godoc. A bit of a mystery to me. Thanks to all for the responses. Not sure what i got wrong initially.
This started happening again and i may have tracked it to a race condition that takes place between Windows Fast Boot and WSL a restart fixes it sometimes. The real cool thing when it happens is that if you check the status of localhost with a goroutine it has a status of 200 with no errors. its just the browser that will not connect; even with windows firewall off.