Add en/0.2.8.md syntax highlighting
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user