mirror of https://github.com/gorilla/websocket.git
More consistent error handling in doc
I noticed the example is actually wrong as the same block both calls `return` with no parameter and `return err`. I think it would be better to allow the code to be used directly. I added calls to log.Println as it was used on the other example as it might be more useful for newcomers to see error messages.
This commit is contained in:
parent
3da6ca0cb6
commit
7ca4275b84
Loading…
Reference in New Issue