Thanks for the suggestion, you are absolutely right, and that’s exactly how *Landbox* is architected.
I’m already using *go:embed* to keep the library zero-dependency. You can see the implementation here: https://github.com/cnaize/landbox/blob/v0.2.0/helper.go#L9-L13 Thanks, Nikita Loskutov On Sun, Mar 1, 2026 at 10:33 PM 'Brian Candler' via golang-nuts < [email protected]> wrote: > A minor thought: if you do want to run a binary like that, then instead of > reading it from a separate file on disk, you can embed it directly into > your Go program. > > See: https://pkg.go.dev/embed > Available since: https://go.dev/doc/go1.16 > > -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/golang-nuts/MCzPu_IrEQs/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/golang-nuts/da4744bc-67f2-4759-ab2d-99bd68fe5631n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/da4744bc-67f2-4759-ab2d-99bd68fe5631n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CAMitnQ9ARXSWkq3Y1fniAc-dCAYpDHyA8P2GXVOZ6r3jN24mZA%40mail.gmail.com.
