String returns the string representation of the error code.
()
| 14 | |
| 15 | // String returns the string representation of the error code. |
| 16 | func (ec ErrCode) String() string { |
| 17 | return codeNames[ec] |
| 18 | } |
| 19 | |
| 20 | // UnmarshalText implement the unmarshal interface for JSON conversions. |
| 21 | func (ec *ErrCode) UnmarshalText(data []byte) error { |