v2 / vlib / v / fmt / tests / embed_file_keep.vv
9 lines · 9 sloc · 265 bytes · 9bf777c1ee711dfd347fb172c7ca398c47270f9d
Raw
1fn main() {
2 mut the_png := $embed_file('v.png')
3 println(the_png)
4 content := the_png.data()
5 eprintln('content: ${ptr_str(content)}')
6 eprintln(unsafe { the_png.data().vbytes(the_png.len) }.hex())
7 println(the_png)
8 the_other_png := $embed_file('v.png', .zlib)
9}
10