Hello everybody. Could you help me? It's my code, and i have got error like in title. How I can to correct this code? Thank you!
func KeyManager (keys []string, work *[]bool, mu *sync.Mutex, remaining []int)(string, int, int){
mu.Lock()
for i:=0; i<len(keys);i++{
if work[i] == false {
work[i] = true
mu.Unlock()
return keys[i], remaining[i] , i
}
}
return "false", -1, -1
}