This commit is contained in:
Henrique Dias committed 2016-06-21 15:28:15 +01:00
1 parent 8879f22932
commit b43d8e2465
67 files changed
+977 -3381

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
package variables
func StringInSlice(a string, list []string) (bool, int) {
for i, b := range list {
if b == a {
return true, i
}
}
return false, 0
}