gitlab.com/evatix-go/core@v1.3.55/errcore/EnumRangeNotMeet.go (about) 1 package errcore 2 3 import "fmt" 4 5 func EnumRangeNotMeet( 6 rangeStart interface{}, 7 rangeEnd interface{}, 8 wholeRange interface{}, 9 ) string { 10 rangeStr := "" 11 12 if wholeRange == nil { 13 rangeStr = fmt.Sprintf(rangeWithoutRangeFormat, rangeStart, rangeEnd) 14 } else { 15 rangeStr = fmt.Sprintf(rangeWithRangeFormat, rangeStart, rangeEnd, wholeRange) 16 } 17 18 return EnumValuesOutOfRangeType.String() + 19 ReferenceStart + 20 rangeStr + 21 ReferenceEnd 22 }