1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

Merge pull request #385 from fognome/master

ch1-basic: fix typo
This commit is contained in:
chai2010 2018-12-10 11:39:22 +08:00 committed by GitHub
commit c11daa8e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,7 +279,7 @@ Read(0, data)
Close() Close()
``` ```
Go语言不支持传统面向对象中的继承特性而是以自己特有的组合方式支持了方法的继承。Go语言中通过在结构体内置匿名的成员来实现继承 Go语言不支持传统面向对象中的继承特性而是以自己特有的组合方式支持了方法的继承。Go语言中通过在结构体内置匿名的成员来实现继承
```go ```go
import "image/color" import "image/color"