Skip to content

Commit

Permalink
Add required comment to exported function
Browse files Browse the repository at this point in the history
  • Loading branch information
johnboyes authored Feb 10, 2024
1 parent fc80cfc commit d660656
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/slice/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d660656

Please sign in to comment.