groepering en tags

This commit is contained in:
Peter Kleiweg
2026-04-09 17:56:59 +02:00
parent b05ff1a4a9
commit 970e133e65
15 changed files with 308 additions and 170 deletions

View File

@@ -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
}