goipam/utils/stringMagic.go

15 lines
251 B
Go
Raw Permalink Normal View History

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
}