You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might be easier to just allow the code that derives the actual source to use the embed.FS interface (or whatever its called). Then have an implementation of the interface that uses the actual filesystem or if the user of the library provides an embedded interface it can use that.
I'm looking to add something similar to the sentry-go SDK for the same reason, as distributing an app as a binary is a lot easier than co-locating the source code.
It would be helpful to embed source code in binary, since the
.Sources()
getter read the sources at runtime, at location specified in the stack trace.I don't see any developer-friendly way to do it, except by using an extra compilation step or codegen. 🙄
The best scenario would be to enable/disable it with a flag in the compilation line or with an environment variable.
Example:
Any idea ?
The text was updated successfully, but these errors were encountered: