diff --git a/README.md b/README.md index 4bd6e5c7..29c223a3 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ # Iris Web Framework -[![build status](https://img.shields.io/github/workflow/status/kataras/iris/CI/master?style=for-the-badge)](https://github.com/kataras/iris/actions) [![view examples](https://img.shields.io/badge/examples%20-253-a83adf.svg?style=for-the-badge&logo=go)](https://github.com/kataras/iris/tree/master/_examples) [![chat](https://img.shields.io/gitter/room/iris_go/community.svg?color=cc2b5e&logo=gitter&style=for-the-badge)](https://gitter.im/iris_go/community) [![donate](https://img.shields.io/badge/support-Iris-blue.svg?style=for-the-badge&logo=paypal)](https://iris-go.com/donate) +[![build status](https://img.shields.io/github/workflow/status/kataras/iris/CI/master?style=for-the-badge)](https://github.com/kataras/iris/actions) [![view examples](https://img.shields.io/badge/examples%20-269-a83adf.svg?style=for-the-badge&logo=go)](https://github.com/kataras/iris/tree/master/_examples) [![chat](https://img.shields.io/gitter/room/iris_go/community.svg?color=cc2b5e&logo=gitter&style=for-the-badge)](https://gitter.im/iris_go/community) [![donate](https://img.shields.io/badge/support-Iris-blue.svg?style=for-the-badge&logo=paypal)](https://iris-go.com/donate) @@ -38,36 +38,6 @@ func main() { } ``` -
API Guide - -```go -package main - -import ( - // [other packages...] - - "github.com/kataras/iris/v12" -) - -func main() { - app := iris.NewGuide(). - AllowOrigin("*"). - Compression(true). - Health(true, "development", "kataras"). - Timeout(0, 20*time.Second, 20*time.Second). - Middlewares(basicauth.New(...)). - Services( - // NewDatabase(), - // NewPostgresRepositoryRegistry, - // NewUserService, - ). - API("/users", new(UsersAPI)). - Listen(":80") -} -``` - -
-
More with simple Handler ```go @@ -176,6 +146,37 @@ Want to see more? Navigate through [mvc examples](_examples/mvc)!
+
API Guide HOT + +```go +package main + +import ( + // [other packages...] + + "github.com/kataras/iris/v12" +) + +func main() { + app := iris.NewGuide(). + AllowOrigin("*"). + Compression(true). + Health(true, "development", "kataras"). + Timeout(0, 20*time.Second, 20*time.Second). + Middlewares(basicauth.New(...)). + Services( + // NewDatabase(), + // NewPostgresRepositoryRegistry, + // NewUserService, + ). + API("/users", new(UsersAPI)). + Listen(":80") +} +``` + +
+ +
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. @@ -430,7 +431,7 @@ For a more detailed technical documentation you can head over to our [godocs](ht [![follow Iris web framework on twitter](https://img.shields.io/twitter/follow/iris_framework?color=ee7506&logoColor=ee7506&style=for-the-badge&logo=twitter)](https://twitter.com/intent/follow?screen_name=iris_framework) -[![follow Iris web framework on facebook](https://img.shields.io/badge/Follow%20%40Iris.framework-522-2D88FF.svg?style=for-the-badge&logo=facebook)](https://www.facebook.com/iris.framework) +[![follow Iris web framework on facebook](https://img.shields.io/badge/Follow%20%40Iris.framework-569-2D88FF.svg?style=for-the-badge&logo=facebook)](https://www.facebook.com/iris.framework) You can [request](https://www.iris-go.com/#ebookDonateForm) a PDF and online access of the **Iris E-Book** (New Edition, **future v12.2.0+**) today and be participated in the development of Iris.