From d6606565c005958e166aa626761c6e5dd74640e9 Mon Sep 17 00:00:00 2001 From: John Boyes Date: Sat, 10 Feb 2024 12:53:57 +0000 Subject: [PATCH] Add required comment to exported function --- internal/slice/slice.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/slice/slice.go b/internal/slice/slice.go index f002404a..fb11fa7b 100644 --- a/internal/slice/slice.go +++ b/internal/slice/slice.go @@ -18,6 +18,7 @@ func Contains(slice []string, val string) bool { return false } +// StartsWithAnyOf returns true if the given slice starts with any of the given prefixes func StartsWithAnyOf(prefixes []string, candidate string) bool { for _, prefix := range prefixes { if strings.HasPrefix(candidate, prefix) {