Add 'embed' keyword for wholesale embedding of external files as constant values.
Example: const data :Data = embed "some-file.dat"; Files are looked up the same way an import would be. You can use embed when Data or Text is expected. You can also use it when a struct type is expected -- the file will be interpreted as a message using standard binary serialization.
Showing
This diff is collapsed.
Please
register
or
sign in
to comment