Add ICOCA to Apple Wallet
自從日本交通 IC 卡全國互通之後,其實 Suica 就已經足夠了,但這次 ICOCA 比 Suica 更具優勢的地方,在於可以使用 VISA 信用卡加值!!不再僅限於 Mastercard 或 JCB 信用卡了。
教學|如何註冊「Universal Studios Japan 日本環球影城」會員
Universal Studios Japan
how to return Amazon items
Golang: switch statement with fallthrough
Go only runs the selected case, not all the cases that follow. In effect, the break statement that is needed at the end of each case in those languages is provided automatically in Go.
package main
import (
"fmt"
)
func main() {
var age int = 29
switch {
case age < 25:
fmt.Println("age is less than 25")
fallthrough
case age < 30:
fmt.Println("age is less than 30")
fallthrough
case age < 35:
fmt.Println("age is less than 35")
case age < 40:
fmt.Println("age is less than 40")
}
}
Output
age is less than 30 age is less than 35
使用上請注意不能在最後一個 case 使用 fallthrough 不然會發生錯誤。
cannot fallthrough final case in switch
