Add bare_map
, make_const_pub
, new test
This commit is contained in:
@ -2,6 +2,11 @@ module main
|
||||
|
||||
fn main() {
|
||||
println(embedfs)
|
||||
json_file := embedfs.files['assets/example.json'] or { EmbedFile{} }
|
||||
println(json_file.data.to_string().trim_space())
|
||||
$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())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user