mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 02:35:53 +08:00
11.1
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
## 翻译进度
|
## 翻译进度
|
||||||
|
|
||||||
10.8 [垃圾回收和 SetFinalizer](eBook/10.8.md)
|
11.1 [接口是什么](eBook/11.1.md)
|
||||||
|
|
||||||
## 支持本书
|
## 支持本书
|
||||||
|
|
||||||
|
11
README_gc.md
11
README_gc.md
@@ -8,6 +8,15 @@
|
|||||||
|
|
||||||
本书的主要译者是 [@无闻Unknwon](http://www.weibo.com/Obahua),是一名 Go 语言爱好者和传播者,目前是 [Go Walker](https://gowalker.org)、Gopm、[Gogs](http://gogs.io) 和 [Macaron](https://github.com/Unknwon/macaron) 创始人,极客学院签约讲师。
|
本书的主要译者是 [@无闻Unknwon](http://www.weibo.com/Obahua),是一名 Go 语言爱好者和传播者,目前是 [Go Walker](https://gowalker.org)、Gopm、[Gogs](http://gogs.io) 和 [Macaron](https://github.com/Unknwon/macaron) 创始人,极客学院签约讲师。
|
||||||
|
|
||||||
|
目前已由多位 Go 语言爱好者共同提交翻译内容,主要包括:
|
||||||
|
- [@zhanming](https://github.com/zhanming)
|
||||||
|
- themorecolor
|
||||||
|
- [@everyx](https://github.com/everyx)
|
||||||
|
- [@chidouhu](https://github.com/chidouhu)
|
||||||
|
- [@spawnris](https://github.com/spawnris)
|
||||||
|
- [@domainname](https://github.com/domainname)
|
||||||
|
- [@leisore](https://github.com/leisore)
|
||||||
|
|
||||||
## 适用人群
|
## 适用人群
|
||||||
|
|
||||||
适合有一定编程基础,初学 Go 语言的爱好者。
|
适合有一定编程基础,初学 Go 语言的爱好者。
|
||||||
@@ -19,4 +28,4 @@ Golang 编程:245386165
|
|||||||
|
|
||||||
|更新日期 |更新内容
|
|更新日期 |更新内容
|
||||||
|----------|------------------
|
|----------|------------------
|
||||||
|2015-08-25|10.8 垃圾回收和 SetFinalizer
|
|2015-09-8|11.1 接口是什么
|
2
TOC.md
2
TOC.md
@@ -88,3 +88,5 @@
|
|||||||
- 10.6 [方法](eBook/10.6.md)
|
- 10.6 [方法](eBook/10.6.md)
|
||||||
- 10.7 [类型的 String() 方法和格式化描述符](eBook/10.7.md)
|
- 10.7 [类型的 String() 方法和格式化描述符](eBook/10.7.md)
|
||||||
- 10.8 [垃圾回收和 SetFinalizer](eBook/10.8.md)
|
- 10.8 [垃圾回收和 SetFinalizer](eBook/10.8.md)
|
||||||
|
- 第11章:[接口(interface)与反射(reflection)](eBook/11.0.md)
|
||||||
|
- 11.1 [接口是什么](eBook/11.1.md)
|
@@ -7,7 +7,7 @@ Go 开发者不需要写代码来释放程序中不再使用的变量和结构
|
|||||||
如果想知道当前的内存状态,可以使用:
|
如果想知道当前的内存状态,可以使用:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
fmt.Printf(“%d\n”, runtime.MemStats.Alloc/1024)
|
fmt.Printf("%d\n", runtime.MemStats.Alloc/1024)
|
||||||
```
|
```
|
||||||
|
|
||||||
上面的程序会给出已分配内存的总量,单位是 Kb。进一步的测量参考 [文档页面](http://golang.org/pkg/runtime/#MemStatsType)。
|
上面的程序会给出已分配内存的总量,单位是 Kb。进一步的测量参考 [文档页面](http://golang.org/pkg/runtime/#MemStatsType)。
|
||||||
@@ -30,4 +30,4 @@ runtime.SetFinalizer(obj, func(obj *typeObj))
|
|||||||
|
|
||||||
- [目录](directory.md)
|
- [目录](directory.md)
|
||||||
- 上一节:[类型的 String() 方法和格式化描述符](10.7.md)
|
- 上一节:[类型的 String() 方法和格式化描述符](10.7.md)
|
||||||
- 下一章:[11 接口(Interfaces)与反射(reflection)](11.0.md)
|
- 下一章:[接口(Interfaces)与反射(reflection)](11.0.md)
|
@@ -5,5 +5,5 @@
|
|||||||
## 链接
|
## 链接
|
||||||
|
|
||||||
- [目录](directory.md)
|
- [目录](directory.md)
|
||||||
- 上一节:[垃圾回收和SetFinalizer](10.8.md)
|
- 上一章:[垃圾回收和SetFinalizer](10.8.md)
|
||||||
- 下一节:[接口是什么](11.1.md)
|
- 下一节:[接口是什么](11.1.md)
|
||||||
|
Reference in New Issue
Block a user