Add syntax highlighting

This commit is contained in:
vCaesar
2016-12-10 18:08:05 +08:00
parent 1bb0deab32
commit e476a6e0d0
2 changed files with 15 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ Go里面`if`条件判断语句中不需要括号,如下代码所示
} else {
fmt.Println("x is less than 10")
}
```
Go的`if`还有一个强大的地方就是条件判断语句里面允许声明一个变量,这个变量的作用域只能在该条件逻辑块内,其他地方就不起作用了,如下所示
```Go