2019-08-24 19:56:58 +00:00
|
|
|
const (
|
|
|
|
Cock = 1
|
|
|
|
Ball = 2 + 3
|
|
|
|
Deals = 3
|
|
|
|
Businesses = 4
|
|
|
|
)
|
2019-08-23 19:34:41 +00:00
|
|
|
|
2019-08-24 14:07:23 +00:00
|
|
|
fn main(a int) int {
|
2019-08-24 14:15:41 +00:00
|
|
|
1 + 2 + 3 + 4
|
|
|
|
1 + 1 * 1
|
|
|
|
3 / (51 + 2)
|
2019-08-25 14:38:55 +00:00
|
|
|
mut a := 1+2
|
|
|
|
a = 2
|
2019-08-25 16:02:40 +00:00
|
|
|
|
|
|
|
if a {
|
|
|
|
println(30)
|
|
|
|
} else {
|
|
|
|
println(50)
|
|
|
|
}
|
2019-08-25 16:21:22 +00:00
|
|
|
|
2019-08-26 14:59:32 +00:00
|
|
|
|
2019-08-25 16:21:22 +00:00
|
|
|
a && b
|
|
|
|
a || b
|
2019-08-25 20:14:25 +00:00
|
|
|
|
|
|
|
loop {}
|
|
|
|
loop {
|
|
|
|
println('Ballse')
|
|
|
|
}
|
|
|
|
|
|
|
|
loop a > 2 {}
|
|
|
|
loop a > 2 {
|
|
|
|
println('skirts')
|
|
|
|
}
|
2019-08-26 01:41:25 +00:00
|
|
|
|
|
|
|
cock_and_ball_torture('cbt', 1, 2, 3)
|
2019-08-26 02:16:13 +00:00
|
|
|
|
|
|
|
return 23
|
2019-08-26 12:54:01 +00:00
|
|
|
|
2019-08-26 14:59:32 +00:00
|
|
|
p := Point.{
|
|
|
|
x: 10
|
|
|
|
y: 20
|
|
|
|
}
|
|
|
|
|
2019-08-26 12:54:01 +00:00
|
|
|
//println(p.x)
|
2019-08-24 14:07:23 +00:00
|
|
|
}
|
2019-08-26 12:54:01 +00:00
|
|
|
|
2019-08-26 13:49:43 +00:00
|
|
|
struct Point {
|
|
|
|
x int
|
|
|
|
y int
|
|
|
|
}
|