new implementation

This commit is contained in:
ge committed 2026-05-05 23:02:06 +03:00
1 parent 171ec8fe4b
commit 95ceb5aeac
9 files changed
+179 -217

No files matched your search

+2 -7
View File
@@ -1,11 +1,6 @@
module main
fn main() {
$if bare_map ? {
json_file := embedfs['assets/example.json'] or { EmbedFile{} }
println(json_file.data.to_string().trim_space())
} $else {
json_file := embedfs.files['assets/example.json'] or { EmbedFile{} }
println(json_file.data.to_string().trim_space())
}
json_file := unsafe { embed_files['assets/example.json'] }
println(json_file.to_string().trim_space())
}