aboutsummaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils.go')
-rw-r--r--utils.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.go b/utils.go
index bac8232..8ede372 100644
--- a/utils.go
+++ b/utils.go
@@ -5,6 +5,8 @@ package main
import "strings"
+// sliceContainsNewlines returns true if and only if the given slice contains
+// one or more strings that contains newlines.
func sliceContainsNewlines(s []string) bool {
for _, v := range s {
if strings.Contains(v, "\n") {