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

Method String

common_string.go:87–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85)
86
87func (i CurveID) String() string {
88 switch {
89 case 23 <= i && i <= 25:
90 i -= 23
91 return _CurveID_name_0[_CurveID_index_0[i]:_CurveID_index_0[i+1]]
92 case i == 29:
93 return _CurveID_name_1
94 case i == 4588:
95 return _CurveID_name_2
96 default:
97 return "CurveID(" + strconv.FormatInt(int64(i), 10) + ")"
98 }
99}
100func _() {
101 // An "invalid array index" compiler error signifies that the constant values have changed.
102 // Re-run the stringer command to generate them again.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected