gitlab.com/evatix-go/core@v1.3.55/errcore/StringLinesToQuoteLinesToSingle.go (about) 1 package errcore 2 3 import ( 4 "strings" 5 6 "gitlab.com/evatix-go/core/constants" 7 ) 8 9 // StringLinesToQuoteLinesToSingle 10 // 11 // Each line will be wrapped with "\"%s\", quotation and comma 12 func StringLinesToQuoteLinesToSingle(lines []string) string { 13 slice := StringLinesToQuoteLines(lines) 14 15 return strings.Join( 16 slice, 17 constants.NewLineUnix) 18 }