Golang - 條件式與迴圈



if-else

if condition {
    ...
} else {
    ...
}

switch

switch condition {
case c1:
    ...
case c2:
    ...
default:
    ...
}

for

for i := 0; i < count; i++ {
    ...
}

while

for {
    ...
}
#golang #GO







你可能感興趣的文章

Introducing Asymptotic Measures

Introducing Asymptotic Measures

text CSS 屬性 補

text CSS 屬性 補

OpenCV在空拍影像中單一辨識顏色

OpenCV在空拍影像中單一辨識顏色






留言討論