Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I like the idea and I’m likely to try the concept on something. This website has wrapping issues on my phone. Since it’s binary, that’s probably easy to solve in a single function. I’m really curious how data is stored in this system. Is all this text inside the code base, set as variables or something? Is it tacked onto the end of the bin and then the bin reads and processes it somehow? Or, is this reading plain-text stored alongside the binary?


I have built something similar and decided to simply use the embed[1] package which works well for this purpose.

[1] https://pkg.go.dev/embed


The source is at https://git.j3s.sh/j3s.sh/tree

I had a look since I was also curious and I am none the wiser as I don't see any embedding going on, but maybe I'm missing it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: