gitlab.com/evatix-go/core@v1.3.55/errcore/SourceDestinationErr.go (about) 1 package errcore 2 3 import ( 4 "errors" 5 6 "gitlab.com/evatix-go/core/constants" 7 ) 8 9 func SourceDestinationErr( 10 isIncludeType bool, 11 srcVal, 12 destinationVal interface{}, 13 ) error { 14 message := VarTwo( 15 isIncludeType, 16 constants.SourceLower, 17 srcVal, 18 constants.DestinationLower, 19 destinationVal) 20 21 return errors.New(message) 22 }