package main func getLetter(letter string) (isFound bool) { isFound = false for i, v := range randWord { if letter == string(v) { isFound = true hiddenChars[i] = string(v) } } return isFound }