go-basic-logger/stringinarray.go

15 lines
277 B
Go
Raw Permalink Normal View History

2022-02-05 10:03:13 +00:00
// Copyright (c) 2022 Bryan Joshua Pedini
// License: GPL-3 ยท See LICENSE for more details
package gobasiclogger
import "strings"
func _stringInArray(s string, l []string) bool {
for _, e := range l {
if strings.Compare(s, e) == 0 {
return true
}
}
return false
}