mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
14 lines
157 B
V
14 lines
157 B
V
struct Foo{
|
|
mut:
|
|
name string
|
|
}
|
|
fn (f mut Foo) info() {
|
|
f.name = 'foo'
|
|
}
|
|
fn (mut f &Foo) info2() {
|
|
f.name = 'foo'
|
|
}
|
|
fn main() {
|
|
println('hello, world')
|
|
}
|