if同时也可以当作表达式使用:
s := if num % 2 == 0 {}println(s) // ==> "odd"
s := if num % 2 == 0 {
}
println(s) // ==> "odd"
本文档使用 BookStack 构建