if同时也可以当作表达式使用:

    1. s := if num % 2 == 0 {
    2. }
    3. println(s) // ==> "odd"