mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
16 lines
257 B
V
16 lines
257 B
V
module main
|
|
|
|
import os
|
|
|
|
fn (mut c Create) set_bin_project_files() {
|
|
base := if c.new_dir { c.name } else { '' }
|
|
c.files << ProjectFiles{
|
|
path: os.join_path(base, 'src', 'main.v')
|
|
content: "module main
|
|
|
|
fn main() {
|
|
println('Hello World!')
|
|
}
|
|
"
|
|
}
|
|
}
|