()
| 85 | } |
| 86 | |
| 87 | func (ec errorCode) String() string { |
| 88 | if ec < 0 || int(ec) >= len(errorCodeStr) || errorCodeStr[ec] == "" { |
| 89 | return fmt.Sprintf("ErrCode#%d", int(ec)) |
| 90 | } |
| 91 | return errorCodeStr[ec] |
| 92 | } |
| 93 | |
| 94 | type shareError struct { |
| 95 | code errorCode |
no outgoing calls