15 lines
251 B
Go
15 lines
251 B
Go
|
package utils
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
// SliceToLines() turns a slice of strings into a LF separated string)
|
||
|
func SliceToLines(slice []string) string {
|
||
|
var result string
|
||
|
|
||
|
for _, entry := range slice {
|
||
|
result += fmt.Sprint(entry, "\n")
|
||
|
}
|
||
|
|
||
|
return result
|
||
|
}
|