v / examples / vmod.v
9 lines · 7 sloc · 206 bytes · 017ace6ea7402430a992aa0820d5e472ebca74c7
Raw
1module main
2
3import v.vmod
4
5fn main() {
6 mod := vmod.decode(@VMOD_FILE) or { panic('Error decoding v.mod') }
7 println('${mod.name} has version ${mod.version}')
8 println('\nThe full mod struct: \n${mod}')
9}
10