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

Method String

stringer.go:52–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50var _MessageType_index = [...]uint8{0, 11, 24}
51
52func (i MessageType) String() string {
53 i -= 1
54 if i < 0 || i >= MessageType(len(_MessageType_index)-1) {
55 return "MessageType(" + strconv.FormatInt(int64(i+1), 10) + ")"
56 }
57 return _MessageType_name[_MessageType_index[i]:_MessageType_index[i+1]]
58}
59func _() {
60 // An "invalid array index" compiler error signifies that the constant values have changed.
61 // Re-run the stringer command to generate them again.

Callers

nothing calls this directly

Calls 1

MessageTypeTypeAlias · 0.70

Tested by

no test coverage detected