mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:16:28 +01:00
minor: README: test alignation
Former-commit-id: 39011a182bd5032091d3e0f78b253d3b05658d9b
This commit is contained in:
parent
e4225543bc
commit
aad9a0571f
21
README.md
21
README.md
|
@ -7,22 +7,17 @@
|
||||||
 Support your favorite web framework through [Github Sponsors Program](https://github.com/sponsors/kataras)! -->
|
 Support your favorite web framework through [Github Sponsors Program](https://github.com/sponsors/kataras)! -->
|
||||||
# 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_GR.md"><img width="20px" src="https://iris-go.com/images/flag-greece.svg?v=10" /></a> <a href="README_ES.md"><img width="20px" src="https://iris-go.com/images/flag-spain.png" /></a> <a href="README_KO.md"><img width="20px" src="https://iris-go.com/images/flag-south-korea.svg" /></a> <a href="README_FA.md"><img width="20px" src="https://iris-go.com/images/flag-iran.svg" /></a> <a href="README_RU.md"><img width="20px" src="https://iris-go.com/images/flag-russia.svg" /></a>
|
# 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_GR.md"><img width="20px" src="https://iris-go.com/images/flag-greece.svg?v=10" /></a> <a href="README_ES.md"><img width="20px" src="https://iris-go.com/images/flag-spain.png" /></a> <a href="README_KO.md"><img width="20px" src="https://iris-go.com/images/flag-south-korea.svg" /></a> <a href="README_FA.md"><img width="20px" src="https://iris-go.com/images/flag-iran.svg" /></a> <a href="README_RU.md"><img width="20px" src="https://iris-go.com/images/flag-russia.svg" /></a>
|
||||||
|
|
||||||
[](https://travis-ci.org/kataras/iris) [](https://app.fossa.io/projects/git%2Bgithub.com%2Fkataras%2Firis?ref=badge_shield)<!--[](https://goreportcard.com/report/github.com/kataras/iris)--><!--[](https://godoc.org/github.com/kataras/iris)--> [](https://github.com/kataras/iris/tree/master/_examples) [](https://gitter.im/iris_go/community)<!--[](https://www.paypal.me/kataras)--><!-- [](https://github.com/kataras/iris/releases) -->
|
[](https://travis-ci.org/kataras/iris) [](https://app.fossa.io/projects/git%2Bgithub.com%2Fkataras%2Firis?ref=badge_shield)<!--[](https://goreportcard.com/report/github.com/kataras/iris)--><!--[](https://godoc.org/github.com/kataras/iris)--> [](https://github.com/kataras/iris/tree/master/_examples) [](https://gitter.im/iris_go/community)<!--[](https://www.paypal.me/kataras)--><!-- [](https://github.com/kataras/iris/releases) -->
|
||||||
|
|
||||||
Iris is a fast, simple yet fully featured and very efficient web framework for Go. It provides a beautifully expressive and easy to use foundation for your next website or API.
|
<a href="https://iris-go.com"> <img align="right" src="https://iris-go.com/images/logo-155w.png"></a>
|
||||||
|
|
||||||
<!-- Why choose Iris instead?
|
Iris is a fast, simple yet fully featured and very efficient web framework for Go.
|
||||||
|
|
||||||
- https://github.com/kataras/iris/issues/1396
|
It provides a beautifully expressive and easy to use foundation for your next website or API.
|
||||||
- https://blog.usejournal.com/top-6-web-frameworks-for-go-as-of-2017-23270e059c4b -->
|
|
||||||
|
|
||||||
<p align="center">
|
|
||||||
<img src="https://iris-go.com/images/logo-sm.png">
|
|
||||||
<br/>
|
|
||||||
<a href="https://iris-go.com/testimonials/"><img src="https://media.giphy.com/media/j5WLmtvwn98VPrm7li/giphy.gif"></a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
Learn what [others saying about Iris](https://iris-go.com/testimonials/) and **[star](https://github.com/kataras/iris/stargazers)** this open-source project to support its potentials.
|
||||||
|
|
||||||
|
[](https://iris-go.com/testimonials/)
|
||||||
|
|
||||||
## 📖 Learning Iris
|
## 📖 Learning Iris
|
||||||
|
|
||||||
|
@ -42,14 +37,14 @@ package main
|
||||||
import "github.com/kataras/iris/v12"
|
import "github.com/kataras/iris/v12"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app := iris.Default()
|
app := iris.New()
|
||||||
app.Get("/ping", func(ctx iris.Context) {
|
app.Get("/ping", func(ctx iris.Context) {
|
||||||
ctx.JSON(iris.Map{
|
ctx.JSON(iris.Map{
|
||||||
"message": "pong",
|
"message": "pong",
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
app.Run(iris.Addr(":8080"))
|
app.Listen(":8080")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user