MCPcopy Create free account
hub / github.com/SmolDapp/tokenAssets / ContainsSubString

Function ContainsSubString

_config/goAPI/helpers.go:17–24  ·  view source on GitHub ↗

ContainsSubString returns true if value exists in arr arr are assumed to contain the substrings of value

(arr []string, value string)

Source from the content-addressed store, hash-verified

15// ContainsSubString returns true if value exists in arr
16// arr are assumed to contain the substrings of value
17func ContainsSubString(arr []string, value string) bool {
18 for _, v := range arr {
19 if strings.Contains(value, v) {
20 return true
21 }
22 }
23 return false
24}

Callers 3

ServeChainFunction · 0.85
ServeTokenFunction · 0.85
NewRateLimiterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected