23 lines
221 B
V
23 lines
221 B
V
|
module main
|
||
|
|
||
|
[heap]
|
||
|
pub struct Grid {
|
||
|
pub mut:
|
||
|
header string
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
h := 'yo'
|
||
|
|
||
|
mut grid := Grid{
|
||
|
header: h
|
||
|
}
|
||
|
wrap_text(mut grid)
|
||
|
}
|
||
|
|
||
|
fn wrap_text(mut gv Grid) {
|
||
|
for mut ch in gv.header {
|
||
|
println(ch)
|
||
|
}
|
||
|
}
|