Skip to content

Commit 4126a1b

Browse files
committed
恢复本地 mdbook 第一章开头
1 parent f5241a4 commit 4126a1b

File tree

5 files changed

+8
-44
lines changed

5 files changed

+8
-44
lines changed

.bookignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,5 @@
1-
# Node rules:
2-
## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
3-
.grunt
4-
5-
## Dependency directory
6-
## Commenting this out is preferred by some people, see
7-
## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-into-git
8-
node_modules
9-
10-
# Book build output
11-
_book
12-
13-
# eBook build output
14-
*.epub
15-
*.mobi
16-
*.pdf
17-
18-
*.o
19-
*.obj
20-
*.exe
21-
22-
# macOS
23-
.DS_Store
24-
25-
*.a
26-
*.lib
27-
*.so
28-
*.dll
29-
*.obj
30-
*.o
31-
a.out
32-
33-
.oracle_jre_usage
34-
35-
# Delve
36-
debug
37-
38-
# ide
39-
.idea/
1+
/_book
2+
/book
403

4+
*.out*
5+
_zz*

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414

1515
default:
16-
mdbook build
16+
mdbook serve
1717

1818
macos:
1919
gitbook build --gitbook=3.2.3

SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[Go语言定制指南](index.md)
44
[前言](preface.md)
55

6-
* [第1章 语言基础](ch1-basic/readme.md)
6+
* [语言基础](ch1-basic/readme.md)
77

88
<!--
99
* [1.1 Go语言创世纪](ch1-basic/ch1-01-genesis.md)

ch1-basic/readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
*搬砖民工也会建成自己的罗马帝国。——小张*
66

7+
---
8+
79
本章首先简要介绍 Go 语言的发展历史,并较详细地分析了“Hello World”程序在各个祖先语言中演化过程。然后,对以数组、字符串和切片为代表的基础结构,对以函数、方法和接口所体现的面向过程和鸭子对象的编程,以及 Go 语言特有的并发编程模型和错误处理哲学做了简单介绍。最后,针对 macOS、Windows、Linux 几个主流的开发平台,推荐了几个较友好的 Go 语言编辑器和集成开发环境,因为好的工具可以极大地提高我们的效率。

0 commit comments

Comments
 (0)