MCPcopy Create free account
hub / github.com/AudDMusic/RedditBot / stringInSlice

Function stringInSlice

main.go:89–96  ·  view source on GitHub ↗
(slice []string, s string)

Source from the content-addressed store, hash-verified

87const RecognizeSongBotUsername = "RecognizeSong"
88
89func stringInSlice(slice []string, s string) bool {
90 for i := range slice {
91 if s == slice[i] {
92 return true
93 }
94 }
95 return false
96}
97func substringInSlice(s string, slice []string) bool {
98 for i := range slice {
99 if strings.Contains(s, slice[i]) {

Callers 5

HandleQueryMethod · 0.85
MentionMethod · 0.85
CommentMethod · 0.85
PostMethod · 0.85
loadConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected