-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1309 from gongchao/master
Readme add Chinese translation
- Loading branch information
Showing
3 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<!-- # Iris Web Framework <a href="README_ZH.md"> <img width="20px" src="https://iris-go.com/images/flag-china.svg?v=10" /></a> <a href="README_RU.md"><img width="20px" src="https://iris-go.com/images/flag-russia.svg?v=10" /></a> <a href="README_ID.md"> <img width="20px" src="https://iris-go.com/images/flag-indonesia.svg?v=10" /></a> <a href="README_GR.md"><img width="20px" src="https://iris-go.com/images/flag-greece.svg?v=10" /></a> <a href="README_PT_BR.md"><img width="20px" src="https://iris-go.com/images/flag-pt-br.svg?v=10" /></a> <a href="README_JPN.md"><img width="20px" src="https://iris-go.com/images/flag-japan.svg?v=10" /></a> --> | ||
|
||
# Iris <a href="README.md"> <img width="20px" src="https://iris-go.com/images/flag-unitedkingdom.svg?v=10" /></a> <a href="README_GR.md"><img width="20px" src="https://iris-go.com/images/flag-greece.svg?v=10" /></a> | ||
|
||
[![build status](https://img.shields.io/travis/kataras/iris/master.svg?style=for-the-badge)](https://travis-ci.org/kataras/iris) [![report card](https://img.shields.io/badge/report%20card-a%2B-ff3333.svg?style=for-the-badge)](https://goreportcard.com/report/github.com/kataras/iris)<!--[![godocs](https://img.shields.io/badge/go-%20docs-488AC7.svg?style=for-the-badge)](https://godoc.org/github.com/kataras/iris)--> [![view examples](https://img.shields.io/badge/learn%20by-examples-0077b3.svg?style=for-the-badge)](https://github.com/kataras/iris/tree/master/_examples) [![chat](https://img.shields.io/gitter/room/iris_go/community.svg?color=blue&logo=gitter&style=for-the-badge)](https://gitter.im/iris_go/community) [![release](https://img.shields.io/badge/release%20-v11.2-0077b3.svg?style=for-the-badge)](https://github.com/kataras/iris/releases) | ||
|
||
Iris 是基于 Go 编写的一个快速,简单但功能齐全且非常高效的 Web 框架。 它为您的下一个网站或 API 提供了一个非常富有表现力且易于使用的基础。 | ||
|
||
看看 [其他人如何评价 Iris](https://iris-go.com/testimonials/),同时欢迎各位点亮 **star**。 | ||
|
||
> 新版本 11.2 发布! [散布消息](https://dev.to/kataras/iris-version-11-2-released-22bc). | ||
## 学习 Iris | ||
|
||
<details> | ||
<summary>快速入门</summary> | ||
|
||
```sh | ||
# 假设文件已经存在 | ||
$ cat example.go | ||
``` | ||
|
||
```go | ||
package main | ||
|
||
import "github.com/kataras/iris" | ||
|
||
func main() { | ||
app := iris.Default() | ||
app.Get("/ping", func(ctx iris.Context) { | ||
ctx.JSON(iris.Map{ | ||
"message": "pong", | ||
}) | ||
}) | ||
|
||
app.Run(iris.Addr(":8080")) | ||
} | ||
``` | ||
|
||
```sh | ||
# 运行 example.go | ||
# 在浏览器中访问 http://localhost:8080/ping | ||
$ go run example.go | ||
``` | ||
|
||
> 路由由 [muxie](https://github.com/kataras/muxie) 提供支持,muxie 是基于 Go 编写的最强大最快速的基于 trie 的路由 | ||
</details> | ||
|
||
Iris 包含详细而完整的 **[文档](https://github.com/kataras/iris/wiki)**,使你很容易开始使用该框架。 | ||
|
||
要了解更多详细的技术文档,可以访问我们的 [godocs](https://godoc.org/github.com/kataras/iris)。对于可执行代码,可以随时访问示例代码,在仓库的 [_examples](_examples/) 目录下。 | ||
|
||
### 你喜欢在旅行中看书吗? | ||
|
||
你现在可以 [获取](https://bit.ly/iris-req-book) PDF版本和在线访问我们的 **电子书** 并参与 Iris 的开发。 | ||
|
||
[![https://iris-go.com/images/iris-book-overview.png](https://iris-go.com/images/iris-book-overview.png)](https://bit.ly/iris-req-book) | ||
|
||
## 贡献 | ||
|
||
我们很高兴看到你对 Iris Web 框架的贡献!有关为 Iris 做出贡献的更多信息,请查看 [CONTRIBUTING.md](CONTRIBUTING.md)。 | ||
|
||
[所有贡献者名单](https://github.com/kataras/iris/graphs/contributors) | ||
|
||
## 安全漏洞 | ||
|
||
如果你发现在 Iris 存在安全漏洞,请发送电子邮件至 [[email protected]](mailto:[email protected]),所有安全漏洞都会被及时解决。 | ||
|
||
## 授权协议 | ||
|
||
项目名称 "Iris" 的灵感来自于希腊神话。 | ||
|
||
Iris Web 框架授权基于 [3-Clause BSD License](LICENSE) 许可的免费开源软件。 |