gitlab.com/evatix-go/core@v1.3.55/coreinterface/all-stringers.go (about) 1 package coreinterface 2 3 type AllKeysStringer interface { 4 AllKeys() []string 5 } 6 7 type AllKeysSortedStringer interface { 8 AllKeysSorted() []string 9 } 10 11 type JsonCombineStringer interface { 12 JsonStringer 13 // MustJsonStringer panic if any error 14 MustJsonStringer 15 } 16 17 type BuildStringer interface { 18 Build() string 19 } 20 21 type ByteToStringer interface { 22 String(input byte) string 23 } 24 25 type MustJsonStringer interface { 26 JsonStringMust() string 27 } 28 29 type NameValueStringer interface { 30 NameValue() string 31 } 32 33 type FullStringer interface { 34 FullString() string 35 } 36 37 type FullStringWithTracer interface { 38 FullStringWithTraces() string 39 } 40 41 type ToValueStringer interface { 42 Value() string 43 } 44 45 // ToNumberStringer 46 // 47 // It returns string number value. 48 // 49 // Examples: 50 // - ToNumberString() -> "1" if the value is 1 51 // - ToNumberString() -> "10" if the value is 10 52 type ToNumberStringer interface { 53 // ToNumberString 54 // 55 // It returns string number value. 56 // 57 // Examples: 58 // - ToNumberString() -> "1" if the value is 1 59 // - ToNumberString() -> "10" if the value is 10 60 ToNumberString() string 61 } 62 63 type ValidationCheckerWithStringer interface { 64 Stringer 65 IsInvalidChecker 66 IsValidChecker 67 } 68 69 type SafeStringer interface { 70 SafeString() string 71 }