mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
13 lines
226 B
V
13 lines
226 B
V
module main
|
|
|
|
fn (mut c Create) set_bin_project_files(new bool) {
|
|
c.files << ProjectFiles{
|
|
path: if new { '${c.name}/src/main.v' } else { 'src/main.v' }
|
|
content: "module main
|
|
|
|
fn main() {
|
|
println('Hello World!')
|
|
}
|
|
"
|
|
}
|
|
}
|