GO的控制结构和别的语言差不多,都是if-else if-else的这种用法

Go的if else支持一种新的写法,可以在if-else块里面定义一个新的局部变量。
在右边的distance的只作用于if-else块,离开了这个范围就无法使用了。
解决方法:
Have you ever heard of SEMA? It’s a fairly esoteric system for measuring how good a software team is. No, wait! Don’t follow that link! It will take you about six years just to understand that stuff. So I’ve come up with my own, highly irresponsible, sloppy test to rate the quality of a software team. The great part about it is that it takes about 3 minutes. With all the time you save, you can go to medical school.