Files
xgcl/grand/errors_string.go
T
2026-05-27 23:03:00 +08:00

25 lines
699 B
Go

// Code generated by "stringer -type=ErrorCode -linecomment -output=errors_string.go errors.go"; DO NOT EDIT.
package grand
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[ErrGenerateRandomFailed-16850944]
}
const _ErrorCode_name = "随机数生成失败"
var _ErrorCode_index = [...]uint8{0, 21}
func (i ErrorCode) String() string {
i -= 16850944
if i >= ErrorCode(len(_ErrorCode_index)-1) {
return "ErrorCode(" + strconv.FormatInt(int64(i+16850944), 10) + ")"
}
return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
}