Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
generics
/
modules
/
simplemodule
/
simplemodule.v
21
lines
·
16
sloc
·
220 bytes
·
9335a84eb35cbd58c71a559b397b38fd57697ea6
Raw
1
module
simplemodule
2
3
pub
fn
iadd(x int, y int) int {
4
return
x + y
5
}
6
7
pub
fn
imul(x int, y int) int {
8
return
x * y
9
}
10
11
pub
struct
ThisIsGeneric[T] {
12
pub
:
13
msg T
14
}
15
16
pub
struct
Data {
17
pub
:
18
value int
19
}
20
21
pub
const
zero = 0
22