maja42 / ember

Embed arbitrary resources into a go executable at runtime, after the executable has been built.
MIT License
79 stars 7 forks source link

How does the target application accesses its injected files? #4

Closed nhh closed 3 weeks ago

nhh commented 3 weeks ago

I do understand how it works, but I think I dont understand how this is used by the target application? (I assume the target is also a go binary with a custom FS implementation.)

I would like to use this to produce self contained applications. For example a ui lib that takes user-code and embeds it in itself

maja42 commented 3 weeks ago

The first example in the readme shows how the target application can access the embedded content: https://github.com/maja42/ember?tab=readme-ov-file#access-embedded-files-from-within-the-target-application

maja42 commented 3 weeks ago

Does this answer your question?

nhh commented 3 weeks ago

A classical case of rtfm! Consider this case closed 🙏