Does a break statement break from a switch/select?

后端 未结 7 1243
不知归路
不知归路 2020-12-04 07:57

I know that switch/select statements break automatically after every case. I am wondering, in the following code:

for {
    switch          


        
7条回答
  •  [愿得一人]
    2020-12-04 08:10

    Just from a switch block. There's plenty of examples in Golang own code you can examine (compare inner break with outer break).

提交回复
热议问题