Answer the question
In order to leave comments, you need to log in
What does /dev/stdin mean in windows?
The code looks like this:
func main(){
...
filesWithMatch += countLines(os.Stdin, counts)
...
}
func countLines(f *os.File, counts map[string]int) string {
input := bufio.NewScanner(f)
for input.Scan() {
counts[input.Text()]++
}
for _, n := range counts {
if n > 1 {
return f.Name()
}
}
return ""
}
Answer the question
In order to leave comments, you need to log in
Apparently the same as in Libux/FreeBSD: a file associated with "standard input". Tell more?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question