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
what's the purpose? What's its use case?
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
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.
at that point I'd ask myself: do I really want to use JSON? I would just use https://msgpack.org instead
Trying to avoid requiring external libs dealing with these files require any external dependencies.
but I'd be using jbtf then, which is an external lib, right?!
external as in, people wanting to work with data produced from my program
msgpack has various implementations in all common languages AFAIK it's pretty good
Обсуждают сегодня