Похожие чаты

Hello there , i am reading a jsonl file which

can poses really big lines (one that i found was 110 kb) , i am parsing this file line by line and using the object . interestingly enough , go stops reading file before that 110 kb line . any idea why ? and how can i fix this ?

9 ответов

14 просмотров

110kb isn't big

no idea because you've not provided the code. No code - no idea.

mohammad- Автор вопроса
Roman Sharkov
no idea because you've not provided the code. No c...

https://gist.github.com/muhammad-davatgar/cd7713138e908bb3aae5ff201678387d

mohammad- Автор вопроса
Sebastian
is there an error printed?

Nah, it just stops reading the file at the same line everytime

mohammad- Автор вопроса
mohammad
Nah, it just stops reading the file at the same li...

about that , by using another golang json library i found out that this is happening bcs go can't parse my json (invalid document) but the thing is , the json is actually valid , bcs python and online json editors don't seem to have any problems with it how do you think i can parse it with golang ?

mohammad- Автор вопроса
Roman Sharkov
it parses just fine

did you copy/paste the json or read the file ? like the code i sent earlier

mohammad
screenshot did you copy/paste the json or read the file ? lik...

Is this what you want? https://go.dev/play/p/AT_MrcSipUc

Похожие вопросы

Обсуждают сегодня

At which price point will BCH, an ASIC mined coin, be succeptible to reorg attacks because of low hashrate? $10? $1? $0.1? $0.01?
Kishniev
18
А кто-то пробовал, уезжая из Эстонии получить э-рез и продолжить вести предпринимательскую деятельность внутри Эстонии, используя свой OÜ?
Lalalashechki Lalala
62
зачем же переименовывать ? чтобы кол-во участников возросло или вдруг IBM от этого снова на свифте начнет кодить ? Я не понимаю что страшного в том что свифт гавно, если это т...
Oleh Nerzh
10
Is Kadena onto something special? No one really knows. Good luck!
Bright Uncle Stephen EqualBet
40
Гайз, кто-нибудь пробовал запустить probe-rs под камень, которого нет в probe-rs? Мб есть какой-нибудь пример у кого... Через target-gen попробовал сгенерировать chip-descript...
Максим Смирнов
2
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
Hello VIC team, I had previously used the “wallet.tomochain.com” with a ledger connection. Unfortunately, the site is no longer accessible and the ledger account is not visibl...
carpe noctem
7
здравствуйте. совершаю вот такую вещь: strcpy(line, (char)current_number); где current number — неподписанный шорт, line — массив чаров. ругань следующая: main.c:29:30: error...
Roberto's Ширгозиев
13
@MrMiscipitlick А можешь макрос написать, который будет вычислять смещение относительно переданных меток? Просто .label1-.label2, и вернуть значение.
КТ315
35
А еще в перле можно уже @arr1 + @arr2?
Sergei Zhmylove
53
Карта сайта