Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* update footer height

* not use disqu

* update themes/docsy

* update ci config

* update ci config

* add comment js

* attempt to fix index error
  • Loading branch information
thinkerou committed Feb 29, 2020
1 parent 0007244 commit 6f132e9
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions content/en/_index.html
Expand Up @@ -19,7 +19,7 @@
{{< /blocks/cover >}}


{{% blocks/lead color="white" %}}
{{< blocks/lead color="white" >}}

**What is Gin?**

Expand All @@ -29,50 +29,50 @@

If you need performance and good productivity, you will love Gin.

{{% /blocks/lead %}}
{{< /blocks/lead >}}

{{< blocks/section color="light" >}}

{{% blocks/feature icon="fa fa-tachometer-alt" title="Fast" %}}
{{< blocks/feature icon="fa fa-tachometer-alt" title="Fast" >}}
Radix tree based routing, small memory foot print. No reflection. Predictable API performance.
{{% /blocks/feature %}}
{{< /blocks/feature >}}

{{% blocks/feature icon="fa fa-bars" title="Middleware support" %}}
{{< blocks/feature icon="fa fa-bars" title="Middleware support" >}}
A incoming HTTP request can be handled by a chain of middlewares and the final action.
For example: Logger, Authorization, GZIP and finally post a message in the DB.
{{% /blocks/feature %}}
{{< /blocks/feature >}}

{{% blocks/feature icon="fa fa-life-ring" title="Crash-free" %}}
{{< blocks/feature icon="fa fa-life-ring" title="Crash-free" >}}
Gin can catch a panic occurred during a HTTP request and recover it. This way, your server will be always available. It’s also possible to report this panic to Sentry for example!
{{% /blocks/feature %}}
{{< /blocks/feature >}}

{{< /blocks/section >}}

{{< blocks/section color="white" >}}

{{% blocks/feature icon="fa fa-check-circle" title="JSON validation" %}}
{{< blocks/feature icon="fa fa-check-circle" title="JSON validation" >}}
Gin can parse and validate the JSON of a request, checking for example the existence of required values.
{{% /blocks/feature %}}
{{< /blocks/feature >}}

{{% blocks/feature icon="fa fa-users-cog" title="Routes grouping" %}}
{{< blocks/feature icon="fa fa-users-cog" title="Routes grouping" >}}
Organize your routes better. Authorization required vs non required, different API versions. In addition, the groups can be nested unlimitedly without degrading performance.
{{% /blocks/feature %}}
{{< /blocks/feature >}}


{{% blocks/feature icon="fa fa-briefcase" title="Error management" %}}
{{< blocks/feature icon="fa fa-briefcase" title="Error management" >}}
Gin provides a convenient way to collect all the errors occurred during a HTTP request. Eventually, a middleware can write them to a log file, to a database and send them through the network.
{{% /blocks/feature %}}
{{< /blocks/feature >}}

{{< /blocks/section >}}

{{< blocks/section color="info" >}}

{{% blocks/feature icon="fa fa-images" title="Rendering built-in" %}}
{{< blocks/feature icon="fa fa-images" title="Rendering built-in" >}}
Gin provides a easy to use API for JSON, XML and HTML rendering.
{{% /blocks/feature %}}
{{< /blocks/feature >}}

{{% blocks/feature icon="fa fa-code" title="Extendable" %}}
{{< blocks/feature icon="fa fa-code" title="Extendable" >}}
Creating a new middleware is so easy, just check out the sample codes.
{{% /blocks/feature %}}
{{< /blocks/feature >}}

{{< /blocks/section >}}

0 comments on commit 6f132e9

Please sign in to comment.