gitlab.com/evatix-go/core@v1.3.55/errcore/MergeErrorsToString.go (about) 1 package errcore 2 3 import "strings" 4 5 func MergeErrorsToString( 6 joiner string, 7 errorItems ...error, 8 ) string { 9 if errorItems == nil { 10 return "" 11 } 12 13 slice := SliceErrorsToStrings(errorItems...) 14 15 return strings.Join(slice, joiner) 16 }