1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v.mod: remove commas; add example for v.vmod (#6169)

This commit is contained in:
Lukas Neubert
2020-08-19 16:07:10 +02:00
committed by GitHub
parent 88bca9d17a
commit eabc2daf86
3 changed files with 22 additions and 11 deletions

11
examples/vmod.v Normal file
View File

@@ -0,0 +1,11 @@
module main
import v.vmod
fn main() {
mod := vmod.decode(@VMOD_FILE) or {
panic('Error decoding v.mod')
}
println('$mod.name has version $mod.version')
println('\nThe full mod struct: \n$mod')
}