Add embed functionality #1367
ghost
started this conversation in
Ideas/Requests
Replies: 1 comment 2 replies
-
|
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be very useful if there were functionality that lets you embed files into your program, similar to Go's use of it with //go:embed, or Nim's
os.slurp()(staticRead), and then allows you to access the file as if it were in the same directory as the Odin program.It could possibly be something like @(embed="file.txt") above a const variable, embedding the given file,
file.txtinto the variable.Beta Was this translation helpful? Give feedback.
All reactions