修改了第二章的目录

interface是method的集合,先介绍method
This commit is contained in:
xiemengjun
2012-08-30 22:51:15 +08:00
parent a3a223ddcf
commit 6bd75c7ae3
6 changed files with 30 additions and 18 deletions

8
2.4.md
View File

@@ -1,4 +1,4 @@
#2.4 高级类型
#2.4 struct类型
##struct
Go语言中也和C或者其他语言一样我们可以声明新的类型作为其它类型的属性或字段的容器。例如我们可以创建一个自定义类型`person`代表一个人的实体。这个实体拥有属性:姓名和年龄。这样的类型我们称之`struct`。如下代码所示:
@@ -196,12 +196,6 @@ Go里面很简单的解决了这个问题最外层的优先访问也就是
fmt.Println("Bob's personal phone is: " Bob.Human.phone)
}
##interface
###什么是interface
###interface类型
###interface值
###interface函数参数
## links
* [目录](<preface.md>)