Sélectionner une révision Git
-
Kubat a rédigé
The error was that passing to threads the pointer to a variable that will be copied then destroyed before the end of the thread is a really bad idea
Kubat a rédigéThe error was that passing to threads the pointer to a variable that will be copied then destroyed before the end of the thread is a really bad idea
utils.go 164 o
package irc
func FindChannel(channels []string, needle string) int {
for i, channel := range channels {
if channel == needle {
return i
}
}
return -1
}