MCPcopy Create free account
hub / github.com/XTLS/REALITY / String

Method String

common_string.go:41–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39)
40
41func (i SignatureScheme) String() string {
42 switch {
43 case i == 513:
44 return _SignatureScheme_name_0
45 case i == 515:
46 return _SignatureScheme_name_1
47 case i == 1025:
48 return _SignatureScheme_name_2
49 case i == 1027:
50 return _SignatureScheme_name_3
51 case i == 1281:
52 return _SignatureScheme_name_4
53 case i == 1283:
54 return _SignatureScheme_name_5
55 case i == 1537:
56 return _SignatureScheme_name_6
57 case i == 1539:
58 return _SignatureScheme_name_7
59 case 2052 <= i && i <= 2055:
60 i -= 2052
61 return _SignatureScheme_name_8[_SignatureScheme_index_8[i]:_SignatureScheme_index_8[i+1]]
62 default:
63 return "SignatureScheme(" + strconv.FormatInt(int64(i), 10) + ")"
64 }
65}
66func _() {
67 // An "invalid array index" compiler error signifies that the constant values have changed.
68 // Re-run the stringer command to generate them again.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected