You've already forked utilities
feat: add initial implementation of Go utilities and CI workflows
This commit is contained in:
11
Maps/maps.go
Executable file
11
Maps/maps.go
Executable file
@@ -0,0 +1,11 @@
|
||||
package Maps
|
||||
|
||||
//goland:noinspection GoUnusedExportedFunction // library function
|
||||
func IsElementExist(s []string, str string) bool {
|
||||
for _, v := range s {
|
||||
if v == str {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user