1
mirror of https://github.com/jlelse/GoBlog synced 2024-06-02 11:24:28 +00:00
GoBlog/utils.go

13 lines
166 B
Go
Raw Normal View History

2020-08-05 17:14:10 +00:00
package main
type stringSlice []string
func (s stringSlice) has(value string) bool {
for _, v := range s {
if v == value {
return true
}
}
return false
}