gitlab.com/evatix-go/core@v1.3.55/errcore/consts.go (about) 1 package errcore 2 3 import "gitlab.com/evatix-go/core/constants" 4 5 const ( 6 ReferenceStart = "Reference(s) (" 7 ReferenceEnd = ")" 8 ReferenceFormat = " Ref(s) { \"%v\" }" 9 rangeWithRangeFormat = "Range must be in between %v and %v. Ranges must be one of these {%v}" 10 rangeWithoutRangeFormat = "Range must be in between %v and %v." 11 CannotConvertStringToByteForLessThanZero = "Cannot convert string to byte. String cannot be less than 0 for byte." 12 CannotConvertStringToByteForMoreThan255 = "Cannot convert string to byte. String is a number " + 13 "but larger than byte size. At max it could be 255." 14 CannotConvertStringToByte = "Cannot convert string to byte." 15 // expectingMessageFormat "%s - expecting (type:[%T]) : [\"%v\"], but received or 16 // actual (type:[%T]) : [\"%v\"]" 17 expectingMessageFormat = "%s - expecting (type:[%T]) : [\"%v\"], but received " + 18 "or actual (type:[%T]) : [\"%v\"]" 19 expectingSimpleMessageFormat = "%s - Expect (type:\"%T\")[\"%v\"] != [\"%v\"](type:\"%T\") Actual" 20 expectingSimpleNoTypeMessageFormat = "%s - Expect [\"%v\"] != [\"%v\"] Actual" 21 expectingNotMatchingSimpleNoTypeMessageFormat = "%s - Expect [\"%v\"] Not Matching [\"%v\"] Actual" 22 var2Format = "(%s, %s) = (%v, %v)" 23 var2WithTypeFormat = "(%s [t:%T], %s[t:%T]) = (%v, %v)" 24 var3Format = "(%s, %s, %s) = (%v, %v, %v)" 25 keyValFormat = constants.KeyValShortFormat 26 var3WithTypeFormat = "(%s [t:%T], %s[t:%T], %s[t:%T]) = (%v, %v, %v)" 27 messageVar2Format = "%s (%s, %s) = (%v, %v)" 28 messageVar3Format = "%s (%s, %s, %s) = (%v, %v, %v)" 29 messageMapFormat = constants.MessageReferenceWrapFormat 30 messageWithTracesWithoutRefFormat = "%s \n%s" 31 refsWithoutQuotation = " Ref (s) { %v }" 32 messageWithRefWithoutQuoteFormat = "%s" + refsWithoutQuotation 33 messageWithOtherMsgWithRefWithoutQuoteFormat = "%s " + messageWithRefWithoutQuoteFormat 34 messageWithTracesRefFormat = messageWithTracesWithoutRefFormat + refsWithoutQuotation 35 PrefixStackTrace = constants.Hyphen + constants.Space 36 PrefixStackTraceNewLine = constants.DefaultLine + PrefixStackTrace 37 NewLineCodeStacksHeader = "\nCode Stacks :\n" 38 CodeStacksHeaderNewLine = "Code Stacks :\n" 39 ShouldBeMessageFormat = "\"%v\" {actual} should be \"%v\" {expecting}" // actual, expecting 40 )