Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v
/
cmd
/
tools
/
vcreate
/
project_model_bin.v
16
lines
·
13
sloc
·
250 bytes
·
c3d6858bf318e8d2aba11666ef3382ee164c2e26
Raw
1
module
main
2
3
import
os
4
5
fn
(
mut
c Create) set_bin_project_files() {
6
base :=
if
c.new_dir { c.name }
else
{
''
}
7
c.files << ProjectFiles{
8
path: os.join_path(base,
'main.v'
)
9
content:
"module main
10
11
fn main() {
12
println('Hello World!')
13
}
14
"
15
}
16
}
17