Update README_ZH.md

Former-commit-id: bb31a3d529ad9b52f398b10ed11eee1a13193d2d
This commit is contained in:
Zeno-Code 2018-01-03 12:05:20 +08:00 committed by GitHub
parent 747e6cb2c7
commit 3e1b94c7a2

View File

@ -8,6 +8,8 @@ Iris 是一款超快、简洁高效的 Go语言 Web开发框架。
Iris 功能强大、使用简单它将会是你下一个网站、API 服务或者分布式应用基础框架的不二之选。 Iris 功能强大、使用简单它将会是你下一个网站、API 服务或者分布式应用基础框架的不二之选。
总之,是一款与 express.js 旗鼓相当的 Go 语言框架。
看看[别人是如何评价 Iris](#support),同时欢迎各位点亮 Iris [Star](https://github.com/kataras/iris/stargazers),或者关注 [Iris facebook 主页](https://facebook.com/iris.framework)。 看看[别人是如何评价 Iris](#support),同时欢迎各位点亮 Iris [Star](https://github.com/kataras/iris/stargazers),或者关注 [Iris facebook 主页](https://facebook.com/iris.framework)。
## 支持者 ## 支持者
@ -44,8 +46,8 @@ func main() {
//方法GET //方法GET
//路径http://localhost:8080/user/42 //路径http://localhost:8080/user/42
// //
// 正则表达式    // 使用正则表达式必须设置参数类型为 string
// app.Get("/user/{id:string regexp(^[0-9]+$)}")    // app.Get("/user/{id:string regexp(^[0-9]+$)}")
app.Get("/user/{id:long}", func(ctx iris.Context) { app.Get("/user/{id:long}", func(ctx iris.Context) {
userID, _ := ctx.Params().GetInt64("id") userID, _ := ctx.Params().GetInt64("id")
ctx.Writef("User ID: %d", userID) ctx.Writef("User ID: %d", userID)
@ -89,7 +91,7 @@ Iris 使用 [vendor](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9Mx
[![Iris vs .NET Core(C#) vs Node.js (Express)](https://iris-go.com/images/benchmark-new-gray.png)](_benchmarks/README_UNIX.md) [![Iris vs .NET Core(C#) vs Node.js (Express)](https://iris-go.com/images/benchmark-new-gray.png)](_benchmarks/README_UNIX.md)
_更新于: [2018年1月2日星期二](_benchmarks/README_UNIX.md)_ _更新于: [2017年11月21日星期二](_benchmarks/README_UNIX.md)_
<details> <details>
<summary>来自第三方的其他网络框架的基准测试</summary> <summary>来自第三方的其他网络框架的基准测试</summary>
@ -145,7 +147,6 @@ _更新于: [2018年1月2日星期二](_benchmarks/README_UNIX.md)_
<img src="https://comments.iris-go.com/comment41.png" width="350px"> <img src="https://comments.iris-go.com/comment41.png" width="350px">
</a> </a>
<br/><br/>
[如何贡献代码](CONTRIBUTING.md) [如何贡献代码](CONTRIBUTING.md)