new implementation
This commit is contained in:
1 parent
171ec8fe4b
commit
95ceb5aeac
9 files changed
+179
-217
No files matched your search
+2
-7
@@ -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())
|
||||
}
|
||||
Reference in new issue
Block a user