The following code:
package main
func main() {
select{
case a<- 1 : return a
case a,ok:=<-c3 :break
//
default:return b
}
}
should format like:
package main
func main() {
select {
case a <- 1:
return a
case a, ok := <-c3:
break
//
default:
return b
}
}
but is formatted like:
package main
func main() {
select {
case a <- 1:
return a
case a , ok := <-c3:
break
//
default:
return b
}
}
Note: the comment should align with the break statement and not the default block.