aboutsummaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 20:23:08 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 20:23:08 +0800
commit485dcfb6685f13751f7018bec2e058931b938d39 (patch)
treec9fe357b9a8c2f8853141828443ad1680022781b /utils.go
parentconfig shall no longer be a global variable (diff)
downloadforge-485dcfb6685f13751f7018bec2e058931b938d39.tar.gz
forge-485dcfb6685f13751f7018bec2e058931b938d39.tar.zst
forge-485dcfb6685f13751f7018bec2e058931b938d39.zip
misc: Move utils.go's string function to misc
Diffstat (limited to '')
-rw-r--r--utils.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/utils.go b/utils.go
deleted file mode 100644
index 8ede372..0000000
--- a/utils.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// SPDX-License-Identifier: AGPL-3.0-only
-// SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
-
-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") {
- return true
- }
- }
- return false
-}