MCPcopy Create free account
hub / github.com/MertJSX/folderhost / IndexOf

Function IndexOf

utils/index_of.go:3–10  ·  view source on GitHub ↗
(element string, data []string)

Source from the content-addressed store, hash-verified

1package utils
2
3func IndexOf(element string, data []string) int {
4 for k, v := range data {
5 if element == v {
6 return k
7 }
8 }
9 return -1
10}

Callers 1

ConvertStringToBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected