If port 8000 is already bound to another server, say, python -m http.server 8000, the tutorial sever on go run . will output "Serving Go+ tutorial at localhost:8000" and will not throw an error.
This is unexpected behavior and user would expect that if port 8000 is not available an error is thrown.
If port 8000 is already bound to another server, say,
python -m http.server 8000
, the tutorial sever ongo run .
will output "Serving Go+ tutorial at localhost:8000" and will not throw an error.This is unexpected behavior and user would expect that if port 8000 is not available an error is thrown.