Похожие чаты

I'Ve built a utility for embedding binaries in JSON. I

created a helper for images. Does anyone know of any other "binary things" you often interact with in golang that's apart of the standard lib? Trying to avoid importing a buncha things

https://github.com/EliCDavis/jbtf

11 ответов

37 просмотров

what's the purpose? What's its use case?

Eli-Davis Автор вопроса
Eli Davis
Embedding binaries in json

https://go.dev/play/p/SYCRSMyIl7G we can already do it with encoding/json Or did I understand it wrong?

jbtf is more efficient or what's the advantage over encoding/json? I believe you should state that in the README so it's clear when to consider using it

Eli-Davis Автор вопроса
Roman Sharkov
jbtf is more efficient or what's the advantage ove...

I guess I rely heavy on people knowing GLTF. With GLTF, the buffer can be encoded directly in the JSON as base64, or have the buffer actually be a URI to a file somewhere external. And if you take it a step further, GLB, the binary is embedded as binary. Not base64 encoded.

Eli Davis
I guess I rely heavy on people knowing GLTF. With...

at that point I'd ask myself: do I really want to use JSON? I would just use https://msgpack.org instead

Eli-Davis Автор вопроса
Roman Sharkov
at that point I'd ask myself: do I really want to ...

Trying to avoid requiring external libs dealing with these files require any external dependencies.

Eli Davis
Trying to avoid requiring external libs dealing wi...

but I'd be using jbtf then, which is an external lib, right?!

Eli-Davis Автор вопроса
Roman Sharkov
but I'd be using jbtf then, which is an external l...

external as in, people wanting to work with data produced from my program

Eli Davis
external as in, people wanting to work with data p...

msgpack has various implementations in all common languages AFAIK it's pretty good

Eli-Davis Автор вопроса

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
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
Карта сайта