mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
9 lines
206 B
V
9 lines
206 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}')
|
|
}
|