MCPcopy
hub / github.com/coder/websocket / String

Method String

stringer.go:29–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27)
28
29func (i opcode) String() string {
30 switch {
31 case 0 <= i && i <= 2:
32 return _opcode_name_0[_opcode_index_0[i]:_opcode_index_0[i+1]]
33 case 8 <= i && i <= 10:
34 i -= 8
35 return _opcode_name_1[_opcode_index_1[i]:_opcode_index_1[i+1]]
36 default:
37 return "opcode(" + strconv.FormatInt(int64(i), 10) + ")"
38 }
39}
40func _() {
41 // An "invalid array index" compiler error signifies that the constant values have changed.
42 // Re-run the stringer command to generate them again.

Callers 10

TestConnFunction · 0.45
handshakeRequestFunction · 0.45
acceptFunction · 0.45
initMethod · 0.45
readMethod · 0.45
unusedListenAddrFunction · 0.45
TestAcceptFunction · 0.45
OnCloseMethod · 0.45
OnMessageMethod · 0.45
SubprotocolMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestConnFunction · 0.36
unusedListenAddrFunction · 0.36
TestAcceptFunction · 0.36