MCPcopy Index your code
hub / github.com/coder/websocket / String

Method String

stringer.go:85–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83var _StatusCode_index = [...]uint16{0, 19, 34, 53, 74, 88, 106, 127, 156, 177, 196, 220, 239, 259, 278, 294, 312}
84
85func (i StatusCode) String() string {
86 i -= 1000
87 if i < 0 || i >= StatusCode(len(_StatusCode_index)-1) {
88 return "StatusCode(" + strconv.FormatInt(int64(i+1000), 10) + ")"
89 }
90 return _StatusCode_name[_StatusCode_index[i]:_StatusCode_index[i+1]]
91}

Callers

nothing calls this directly

Calls 1

StatusCodeTypeAlias · 0.70

Tested by

no test coverage detected