MCPcopy Create free account
hub / github.com/libgit2/git2go / String

Method String

errorcode_string.go:55–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53)
54
55func (i ErrorCode) String() string {
56 switch {
57 case -35 <= i && i <= -30:
58 i -= -35
59 return _ErrorCode_name_0[_ErrorCode_index_0[i]:_ErrorCode_index_0[i+1]]
60 case -24 <= i && i <= -3:
61 i -= -24
62 return _ErrorCode_name_1[_ErrorCode_index_1[i]:_ErrorCode_index_1[i+1]]
63 case -1 <= i && i <= 0:
64 i -= -1
65 return _ErrorCode_name_2[_ErrorCode_index_2[i]:_ErrorCode_index_2[i+1]]
66 default:
67 return "ErrorCode(" + strconv.FormatInt(int64(i), 10) + ")"
68 }
69}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected