From 4322ae23fd02920fb1ee1888b79a5aa3e2e1e679 Mon Sep 17 00:00:00 2001 From: vCaesar Date: Sun, 9 Apr 2017 15:05:51 +0800 Subject: [PATCH] Add en/0.2.8.md syntax highlighting --- en/02.8.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/02.8.md b/en/02.8.md index b1306758..e5b8cbe8 100644 --- a/en/02.8.md +++ b/en/02.8.md @@ -1,13 +1,13 @@ # 2.8 Summary In this chapter, we mainly introduced the 25 Go keywords. Let's review what they are and what they do. - +```Go break default func interface select case defer go map struct chan else goto package switch const fallthrough if range type continue for import return var - +``` - `var` and `const` are used to define variables and constants. - `package` and `import` are for package use. - `func` is used to define functions and methods.