init
This commit is contained in:
1
tests/mymod/assets/example.json
Normal file
1
tests/mymod/assets/example.json
Normal file
@ -0,0 +1 @@
|
||||
{"some": "JSON data"}
|
7
tests/mymod/main.v
Normal file
7
tests/mymod/main.v
Normal file
@ -0,0 +1,7 @@
|
||||
module main
|
||||
|
||||
fn main() {
|
||||
println(embedfs)
|
||||
json_file := embedfs.files['assets/example.json'] or { EmbedFile{} }
|
||||
println(json_file.data.to_string().trim_space())
|
||||
}
|
Reference in New Issue
Block a user