]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/blobdiff - api/const_string.go
Error flags.
[perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git] / api / const_string.go
index 58ed230aeb47795c1896c199fac582eeb922fe1f..c22d1ae32be779ca8f5e98b2d2da7af16ff4e49c 100644 (file)
@@ -1,8 +1,8 @@
-// Code generated by "stringer -type=Status,ErrorCode -output const_string.go"; DO NOT EDIT
+// Code generated by "stringer -type=Status -output const_string.go"; DO NOT EDIT.
 
 package api
 
-import "fmt"
+import "strconv"
 
 const _Status_name = "OKNOK"
 
@@ -10,19 +10,7 @@ var _Status_index = [...]uint8{0, 2, 5}
 
 func (i Status) String() string {
        if i >= Status(len(_Status_index)-1) {
-               return fmt.Sprintf("Status(%d)", i)
+               return "Status(" + strconv.FormatInt(int64(i), 10) + ")"
        }
        return _Status_name[_Status_index[i]:_Status_index[i+1]]
 }
-
-const _ErrorCode_name = "BadRequestEmailExistsExternalServiceTimeoutInternalErrorInvalidCredentialsInvalidEmailInvalidMarketCredentialsIPRestrictedApiKeyInvalidOtpInvalidPasswordNeedOtpValidationNotAuthorizedNotFoundOtpAlreadySetupOtpNotSetupUserNotConfirmed"
-
-var _ErrorCode_index = [...]uint8{0, 10, 21, 43, 56, 74, 86, 110, 128, 138, 153, 170, 183, 191, 206, 217, 233}
-
-func (i ErrorCode) String() string {
-       i -= 3
-       if i >= ErrorCode(len(_ErrorCode_index)-1) {
-               return fmt.Sprintf("ErrorCode(%d)", i+3)
-       }
-       return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
-}