mirror of https://github.com/gorilla/websocket
Browse Source
Using empty struct for signaling is more idiomatic compared to booleans because users might wonder what happens on false or true. Empty struct removes this problem. There is also a side benefit of occupying less memory but it should be negligible in this case.pull/584/head
ferhat elmas
5 years ago
committed by
GitHub
2 changed files with 8 additions and 8 deletions
Loading…
Reference in new issue