Skip to content

Commit c5cdbdb

Browse files
committed
Merge branch 'master' of github.com:jaywcjlove/golang-tutorial
2 parents b61d13e + 2246f99 commit c5cdbdb

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

README.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ brew update && brew upgrade # 更新 Homebrew 的信息
6868
brew update go # 单独更新 golang
6969
brew install git # 安装 git
7070
brew install go # 安装 go
71+
brew upgrade go # 更新 go
7172
```
7273

7374
</details>
@@ -541,7 +542,7 @@ func main() {
541542
</details>
542543

543544
<details>
544-
<summary>符合类型</summary>
545+
<summary>复合类型</summary>
545546

546547
复合类型将使用不同的格式输出,格式如下:
547548

@@ -551,7 +552,7 @@ func main() {
551552
映   射:map[键1:值1 键2:值2 ...]
552553
```
553554

554-
指向符合元素的指针`&{}`, `&[]`, `&map[]`
555+
指向复合元素的指针`&{}`, `&[]`, `&map[]`
555556
复合类型本身没有动词,动词将应用到复合类型的元素上。
556557
结构体可以使用 "+v" 同时输出字段名。
557558

@@ -589,7 +590,7 @@ break default func interface select
589590
case defer go map struct
590591
chan else goto package switch
591592
const fallthrough if range type
592-
continue for import retrun var
593+
continue for import return var
593594
```
594595

595596
</details>
@@ -2057,7 +2058,7 @@ func main() {
20572058
<details>
20582059
<summary>结构体指针</summary>
20592060
2060-
结构体字段使用点号来访问
2061+
结构体指针使用 & 来访问
20612062
20622063
```go
20632064
package main
@@ -2122,28 +2123,31 @@ func main() {
21222123
<details>
21232124
<summary>Web 框架</summary>
21242125
2125-
- [Macaron](https://go-macaron.com/):模块化 Web 框架
2126-
- [Beego](http://beego.me/):重量级 Web 框架
2127-
- [Revel](https://github.com/revel/revel):较早成熟的重量级 Web 框架
2126+
- [Iris](https://github.com/kataras/iris): 一个快速,简单但功能齐全且非常高效的Web框架。
2127+
- [gin](https://github.com/gin-gonic/gin): HTTP Web框架,它具有类似Martini的API,具有更好的性能
2128+
- [Macaron](https://go-macaron.com/): 模块化 Web 框架
2129+
- [Beego](http://beego.me/): 重量级 Web 框架
2130+
- [Revel](https://github.com/revel/revel): 较早成熟的重量级 Web 框架
21282131
- [Martini](https://github.com/go-martini/martini): 一个强大为了编写模块化 Web 应用而生的 Go 语言框架
21292132
21302133
</details>
21312134
21322135
<details>
21332136
<summary>ORM 以及数据库驱动</summary>
21342137
2135-
- [xorm](https://github.com/go-xorm/xorm):支持 MySQL、PostgreSQL、SQLite3 以及 MsSQL
2136-
- [mgo](http://labix.org/mgo):MongoDB 官方推荐驱动
2138+
- [gorm](https://github.com/jinzhu/gorm): 支持 MySQL、PostgreSQL、SQLite3 以及 SQL Server
2139+
- [xorm](https://github.com/go-xorm/xorm): 支持 MySQL、PostgreSQL、SQLite3 以及 MsSQL
2140+
- [mgo](http://labix.org/mgo): MongoDB 官方推荐驱动
21372141
21382142
</details>
21392143
21402144
<details>
21412145
<summary>辅助站点</summary>
21422146
2143-
- [Go Walker](https://gowalker.org)Go 语言在线 API 文档
2144-
- [gobuild.io](http://gobuild.io/)Go 语言在线二进制编译与下载
2145-
- [Rego](http://regoio.herokuapp.com/)Go 语言正则在线测试
2146-
- [gopm.io](https://gopm.io)科学下载第三方包
2147+
- [Go Walker](https://gowalker.org): Go 语言在线 API 文档
2148+
- [gobuild.io](http://gobuild.io/): Go 语言在线二进制编译与下载
2149+
- [Rego](http://regoio.herokuapp.com/): Go 语言正则在线测试
2150+
- [gopm.io](https://gopm.io): 科学下载第三方包
21472151
21482152
</details>
21492153

0 commit comments

Comments
 (0)