Похожие чаты

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 ответов

28 просмотров

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

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта