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

Method String

common_string.go:85–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected