For meanings containing a ,, the index creation process encounters issues. This happens because we split the word and its meaning using ,. If the meaning itself contains a ,, the split operation results in incorrect indexes.
|
words := strings.Split(line, ",") // split the line |
Code: Word Dictionary in CSV
For meanings containing a
,, the index creation process encounters issues. This happens because we split the word and its meaning using,. If the meaning itself contains a,, the split operation results in incorrect indexes.system-design-excercises/28-word-dictionary-csv/index.go
Line 30 in 61fff68
Code: Word Dictionary in CSV