Skip to content

Conversation

cristaloleg
Copy link
Contributor

No description provided.

// These codes were retrieved from:
// https://www.iana.org/assignments/websocket/websocket.xhtml#close-code-number
const (
StatusNormalClosure StatusCode = 1000 + iota
Copy link
Contributor

@nhooyr nhooyr Sep 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is 👍 since iota does make it harder to tell what number each status code corresponds to.

@nhooyr
Copy link
Contributor

nhooyr commented Sep 26, 2019

@cristaloleg Could you change the second commit to start with a capital? Then this should be good for merge.

@nhooyr nhooyr closed this in 71d69de Sep 27, 2019
@cristaloleg cristaloleg deleted the use-const-for-statuses branch October 2, 2019 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants