diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-09-28 09:48:40 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-09-28 09:48:40 -0700 |
| commit | 04821a6e7752d6852bc1d283a88f05f7abecae87 (patch) | |
| tree | 667266ce89224443831cb21d4d9e94cd6ce48c3d /internal/api/errorcode_string.go | |
| parent | 768d3629b938196d132b80864204d7b6a9683a9e (diff) | |
| download | roseh.moe-04821a6e7752d6852bc1d283a88f05f7abecae87.tar.zst | |
Add a gob API
Diffstat (limited to 'internal/api/errorcode_string.go')
| -rw-r--r-- | internal/api/errorcode_string.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/internal/api/errorcode_string.go b/internal/api/errorcode_string.go new file mode 100644 index 0000000..2b4a294 --- /dev/null +++ b/internal/api/errorcode_string.go @@ -0,0 +1,28 @@ +// Code generated by "stringer -type=ErrorCode"; DO NOT EDIT. + +package api + +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[Ok-0] + _ = x[Unauthenticated-1] + _ = x[PermissionDenied-2] + _ = x[BadRequest-3] + _ = x[NotFound-4] + _ = x[Internal-5] +} + +const _ErrorCode_name = "OkUnauthenticatedPermissionDeniedBadRequestNotFoundInternal" + +var _ErrorCode_index = [...]uint8{0, 2, 17, 33, 43, 51, 59} + +func (i ErrorCode) String() string { + if i < 0 || i >= ErrorCode(len(_ErrorCode_index)-1) { + return "ErrorCode(" + strconv.FormatInt(int64(i), 10) + ")" + } + return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]] +} |
