1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/examples/vmod.v
2021-02-23 20:21:50 +02:00

10 lines
200 B
V

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')
}