groepering en tags
This commit is contained in:
@@ -34,7 +34,7 @@ func main() {
|
||||
x(err)
|
||||
scanner := bufio.NewScanner(fp)
|
||||
for scanner.Scan() {
|
||||
seen[strings.SplitN(scanner.Text(), "\t", 2)[1]] = true
|
||||
seen[strings.Split(scanner.Text(), "\t")[1]] = true
|
||||
}
|
||||
x(scanner.Err())
|
||||
x(fp.Close())
|
||||
@@ -49,7 +49,7 @@ func main() {
|
||||
n := 0
|
||||
for scanner.Scan() && n < 20 {
|
||||
line := scanner.Text()
|
||||
w := strings.SplitN(line, "\t", 2)[1]
|
||||
w := strings.Split(line, "\t")[1]
|
||||
if seen[w] {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user