|
19 | 19 |
|
20 | 20 | Iris is a fast, simple yet fully featured and very efficient web framework for Go.
|
21 | 21 |
|
22 |
| -It provides a [beautifully](iris_guide.go#L31-L44) expressive and easy to use foundation for your next website or API. |
| 22 | +It provides a beautifully expressive and easy to use foundation for your next website or API. |
| 23 | + |
23 | 24 |
|
24 | 25 | ```go
|
25 | 26 | package main
|
26 | 27 |
|
27 | 28 | import "github.com/kataras/iris/v12"
|
28 | 29 |
|
29 | 30 | func main() {
|
30 |
| - app := iris.New() |
31 |
| - app.Use(iris.Compression) |
| 31 | + app := iris.New() |
| 32 | + app.Use(iris.Compression) |
32 | 33 |
|
33 |
| - app.Get("/", func(ctx iris.Context) { |
34 |
| - ctx.HTML("Hello <strong>%s</strong>!", "World") |
35 |
| - }) |
| 34 | + app.Get("/", func(ctx iris.Context) { |
| 35 | + ctx.HTML("Hello <strong>%s</strong>!", "World") |
| 36 | + }) |
36 | 37 |
|
37 |
| - app.Listen(":8080") |
| 38 | + app.Listen(":8080") |
38 | 39 | }
|
39 | 40 | ```
|
40 | 41 |
|
41 |
| -<details><summary>More with simple Handler</summary> |
| 42 | +<!-- <details><summary>More with simple Handler</summary> |
42 | 43 |
|
43 | 44 | ```go
|
44 | 45 | package main
|
@@ -178,6 +179,34 @@ func main() {
|
178 | 179 |
|
179 | 180 | <br/>
|
180 | 181 |
|
| 182 | +--> |
| 183 | + |
| 184 | +As one [Go developer](https://twitter.com/dkuye/status/1532087942696554497) once said, **Iris got you covered all-round and standing strong over the years**. |
| 185 | + |
| 186 | +Some of the features Iris offers: |
| 187 | + |
| 188 | +* HTTP/2 (Push, even Embedded data) |
| 189 | +* Middleware (Accesslog, Basicauth, CORS, gRPC, Anti-Bot hCaptcha, JWT, MethodOverride, ModRevision, Monitor, PPROF, Ratelimit, Anti-Bot reCaptcha, Recovery, RequestID, Rewrite) |
| 190 | +* API Versioning |
| 191 | +* Model-View-Controller |
| 192 | +* Websockets |
| 193 | +* gRPC |
| 194 | +* Auto-HTTPS |
| 195 | +* Builtin support for ngrok to put your app on the internet, the fastest way |
| 196 | +* Unique Router with dynamic path as parameter with standard types like :uuid, :string, :int... and the ability to create your own |
| 197 | +* Compression |
| 198 | +* View Engines (HTML, Django, Amber, Handlebars, Pug/Jade and more) |
| 199 | +* Create your own File Server and host your own WebDAV server |
| 200 | +* Cache |
| 201 | +* Localization (i18n, sitemap) |
| 202 | +* Sessions |
| 203 | +* Rich Responses (HTML, Text, Markdown, XML, YAML, Binary, JSON, JSONP, Protocol Buffers, MessagePack, Content Negotiation, Streaming, Server-Sent Events and more) |
| 204 | +* Response Compression (gzip, deflate, brotli, snappy, s2) |
| 205 | +* Rich Requests (Bind URL Query, Headers, Form, Text, XML, YAML, Binary, JSON, Validation, Protocol Buffers, MessagePack and more) |
| 206 | +* Dependency Injection (MVC, Handlers, API Routers) |
| 207 | +* Testing Suite |
| 208 | +* And the most important... you get fast answers and support from the 1st day until now - that's six full years! |
| 209 | + |
181 | 210 | Learn what [others saying about Iris](https://www.iris-go.com/#review) and **[star](https://github.com/kataras/iris/stargazers)** this open-source project to support its potentials.
|
182 | 211 |
|
183 | 212 | [](https://iris-go.com/testimonials/)
|
|
0 commit comments