Merge pull request #142 from Fenny/master

Fix links, supporters and add collapse
This commit is contained in:
Fenny 2020-02-13 20:06:57 -05:00 committed by GitHub
commit 525a845202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 469 additions and 182 deletions

17
.github/README.md vendored
View File

@ -3,7 +3,7 @@
<img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg"> <img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg">
</a> </a>
<br><br> <br><br>
<!--<a href="https://github.com/gofiber/fiber/blob/master/README.md"> <!--<a href="https://github.com/gofiber/fiber/blob/master/.github/README.md">
<img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg"> <img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg">
</a>--> </a>-->
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md">
@ -136,6 +136,8 @@ func main() {
### Routing ### Routing
<details>
<summary>📜 Show code snippet</summary>
```go ```go
func main() { func main() {
app := fiber.New() app := fiber.New()
@ -161,9 +163,12 @@ func main() {
app.Listen(3000) app.Listen(3000)
} }
``` ```
</summary>
### Middleware ### Middleware
<details>
<summary>📜 Show code snippet</summary>
```go ```go
func main() { func main() {
app := fiber.New() app := fiber.New()
@ -195,9 +200,12 @@ func main() {
app.Listen(3000) app.Listen(3000)
} }
``` ```
</summary>
### 404 Handling ### 404 Handling
<details>
<summary>📜 Show code snippet</summary>
```go ```go
func main() { func main() {
app := fiber.New() app := fiber.New()
@ -213,9 +221,12 @@ func main() {
app.Listen(3000) app.Listen(3000)
} }
``` ```
</summary>
### JSON Response ### JSON Response
<details>
<summary>📜 Show code snippet</summary>
```go ```go
func main() { func main() {
app := fiber.New() app := fiber.New()
@ -233,9 +244,12 @@ func main() {
app.Listen(3000) app.Listen(3000)
} }
``` ```
</summary>
### Recover ### Recover
<details>
<summary>📜 Show code snippet</summary>
```go ```go
func main() { func main() {
app := fiber.New() app := fiber.New()
@ -251,6 +265,7 @@ func main() {
app.Listen(3000) app.Listen(3000)
} }
``` ```
</details>
## 💬 Media ## 💬 Media

47
.github/README_de.md vendored
View File

@ -3,7 +3,7 @@
<img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg"> <img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg">
</a> </a>
<br><br> <br><br>
<a href="https://github.com/gofiber/fiber/blob/master/README.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README.md">
<img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg"> <img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg">
</a> </a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md">
@ -231,6 +231,24 @@ func main() {
} }
``` ```
### Recover
```go
func main() {
app := fiber.New()
app.Get("/json", func(c *fiber.Ctx) {
panic("Something went wrong!")
})
app.Recover(func(c *fiber.Ctx) {
c.Status(500).Send(c.Error())
})
app.Listen(3000)
}
```
## 💬 Medien ## 💬 Medien
- [Welcome to Fiber — an Express.js styled web framework written in Go with ❤️](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) _von [Vic Shóstak](https://github.com/koddr), 03 Feb 2020_ - [Welcome to Fiber — an Express.js styled web framework written in Go with ❤️](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) _von [Vic Shóstak](https://github.com/koddr), 03 Feb 2020_
@ -244,16 +262,33 @@ Falls du **danke** sagen möchtest und/oder aktiv die Entwicklung von `fiber` f
3. Schreibe eine Rezension auf [Medium](https://medium.com/), [Dev.to](https://dev.to/) oder einem persönlichem Blog. 3. Schreibe eine Rezension auf [Medium](https://medium.com/), [Dev.to](https://dev.to/) oder einem persönlichem Blog.
4. Hilf uns diese `README` und die [API Docs](https://fiber.wiki/) in eine andere Sprache zu übersetzen. 4. Hilf uns diese `README` und die [API Docs](https://fiber.wiki/) in eine andere Sprache zu übersetzen.
<a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" style="height: 35px !important;" ></a>
## ☕ Supporters ## ☕ Supporters
<a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" height="100" ></a>
<table> <table>
<tr> <tr>
<td align="center"> <td align="center">
<a href="https://www.buymeacoffee.com/fenny"> <a href="https://github.com/bihe">
<img src="https://img.buymeacoffee.com/api/?name=ToishY&size=300&bg-image=bmc" width="100px;" style="border-radius:50%"></br> <img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="75"></br>
<b>ToishY</b> <sub><b>HenrikBinggl</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/koddr">
<img src="https://avatars0.githubusercontent.com/u/11155743?s=460&v=4" width="75"></br>
<sub><b>koddr</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/MarvinJWendt">
<img src="https://avatars1.githubusercontent.com/u/31022056?s=460&v=4" width="75"></br>
<sub><b>MarvinJWendt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/toishy">
<img src="https://avatars1.githubusercontent.com/u/31921460?s=460&v=4" width="75"></br>
<sub><b>ToishY</b></sub>
</a> </a>
</td> </td>
</tr> </tr>

47
.github/README_es.md vendored
View File

@ -3,7 +3,7 @@
<img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg"> <img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg">
</a> </a>
<br><br> <br><br>
<a href="https://github.com/gofiber/fiber/blob/master/README.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README.md">
<img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg"> <img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg">
</a> </a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md">
@ -230,6 +230,24 @@ func main() {
} }
``` ```
### Recover
```go
func main() {
app := fiber.New()
app.Get("/json", func(c *fiber.Ctx) {
panic("Something went wrong!")
})
app.Recover(func(c *fiber.Ctx) {
c.Status(500).Send(c.Error())
})
app.Listen(3000)
}
```
## 💬 Medios ## 💬 Medios
- [Bienvenido a Fiber: un marco web con estilo Express.js escrito en Go with ❤️](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) *por [Vic Shóstak](https://github.com/koddr), 03 feb 2020* - [Bienvenido a Fiber: un marco web con estilo Express.js escrito en Go with ❤️](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) *por [Vic Shóstak](https://github.com/koddr), 03 feb 2020*
@ -243,16 +261,33 @@ Si quiere **agradecer** y/o apoyar el desarrollo activo de la `Fiber`:
3. Escriba una reseña o tutorial en [Medium](https://medium.com/) , [Dev.to](https://dev.to/) o blog personal. 3. Escriba una reseña o tutorial en [Medium](https://medium.com/) , [Dev.to](https://dev.to/) o blog personal.
4. Ayúdanos a traducir este `README` y [API Docs](https://fiber.wiki/) a otro idioma. 4. Ayúdanos a traducir este `README` y [API Docs](https://fiber.wiki/) a otro idioma.
<a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" height="100" ></a>
## ☕ Supporters ## ☕ Supporters
<a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" height="100" ></a>
<table> <table>
<tr> <tr>
<td align="center"> <td align="center">
<a href="https://www.buymeacoffee.com/fenny"> <a href="https://github.com/bihe">
<img src="https://img.buymeacoffee.com/api/?name=ToishY&size=300&bg-image=bmc" width="100px;" style="border-radius:50%"></br> <img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="75"></br>
<b>ToishY</b> <sub><b>HenrikBinggl</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/koddr">
<img src="https://avatars0.githubusercontent.com/u/11155743?s=460&v=4" width="75"></br>
<sub><b>koddr</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/MarvinJWendt">
<img src="https://avatars1.githubusercontent.com/u/31022056?s=460&v=4" width="75"></br>
<sub><b>MarvinJWendt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/toishy">
<img src="https://avatars1.githubusercontent.com/u/31921460?s=460&v=4" width="75"></br>
<sub><b>ToishY</b></sub>
</a> </a>
</td> </td>
</tr> </tr>

45
.github/README_ja.md vendored
View File

@ -3,7 +3,7 @@
<img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg"> <img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg">
</a> </a>
<br><br> <br><br>
<a href="https://github.com/gofiber/fiber/blob/master/README.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README.md">
<img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg"> <img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg">
</a> </a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md">
@ -230,6 +230,24 @@ func main() {
} }
``` ```
### Recover
```go
func main() {
app := fiber.New()
app.Get("/json", func(c *fiber.Ctx) {
panic("Something went wrong!")
})
app.Recover(func(c *fiber.Ctx) {
c.Status(500).Send(c.Error())
})
app.Listen(3000)
}
```
## 💬 メディア ## 💬 メディア
- [ファイバーへようこそ— Go with❤で記述されたExpress.jsスタイルのWebフレームワーク](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) *[ヴィック・ショースタク](https://github.com/koddr) 、2020年2月3日* - [ファイバーへようこそ— Go with❤で記述されたExpress.jsスタイルのWebフレームワーク](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) *[ヴィック・ショースタク](https://github.com/koddr) 、2020年2月3日*
@ -247,12 +265,31 @@ func main() {
## ☕ Supporters ## ☕ Supporters
<a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" height="100" ></a>
<table> <table>
<tr> <tr>
<td align="center"> <td align="center">
<a href="https://www.buymeacoffee.com/fenny"> <a href="https://github.com/bihe">
<img src="https://img.buymeacoffee.com/api/?name=ToishY&size=300&bg-image=bmc" width="100px;" style="border-radius:50%"></br> <img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="75"></br>
<b>ToishY</b> <sub><b>HenrikBinggl</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/koddr">
<img src="https://avatars0.githubusercontent.com/u/11155743?s=460&v=4" width="75"></br>
<sub><b>koddr</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/MarvinJWendt">
<img src="https://avatars1.githubusercontent.com/u/31022056?s=460&v=4" width="75"></br>
<sub><b>MarvinJWendt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/toishy">
<img src="https://avatars1.githubusercontent.com/u/31921460?s=460&v=4" width="75"></br>
<sub><b>ToishY</b></sub>
</a> </a>
</td> </td>
</tr> </tr>

47
.github/README_ko.md vendored
View File

@ -3,7 +3,7 @@
<img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg"> <img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg">
</a> </a>
<br><br> <br><br>
<a href="https://github.com/gofiber/fiber/blob/master/README.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README.md">
<img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg"> <img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg">
</a> </a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md">
@ -231,6 +231,24 @@ func main() {
} }
``` ```
### Recover
```go
func main() {
app := fiber.New()
app.Get("/json", func(c *fiber.Ctx) {
panic("Something went wrong!")
})
app.Recover(func(c *fiber.Ctx) {
c.Status(500).Send(c.Error())
})
app.Listen(3000)
}
```
## 💬 미디어 ## 💬 미디어
- [Welcome to Fiber — an Express.js styled web framework written in Go with ❤️](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) _by [Vic Shóstak](https://github.com/koddr), 03 Feb 2020_ - [Welcome to Fiber — an Express.js styled web framework written in Go with ❤️](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) _by [Vic Shóstak](https://github.com/koddr), 03 Feb 2020_
@ -244,16 +262,33 @@ func main() {
3. [Medium](https://medium.com/), [Dev.to](https://dev.to/) 또는 개인 블로그에 리뷰 또는 튜토리얼을 작성하세요. 3. [Medium](https://medium.com/), [Dev.to](https://dev.to/) 또는 개인 블로그에 리뷰 또는 튜토리얼을 작성하세요.
4. `README` 와 [API 문서](https://fiber.wiki/)를 다른 언어로 번역하는 것을 도와주세요. 4. `README` 와 [API 문서](https://fiber.wiki/)를 다른 언어로 번역하는 것을 도와주세요.
<a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" height="100" ></a>
## ☕ Supporters ## ☕ Supporters
<a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" height="100" ></a>
<table> <table>
<tr> <tr>
<td align="center"> <td align="center">
<a href="https://www.buymeacoffee.com/fenny"> <a href="https://github.com/bihe">
<img src="https://img.buymeacoffee.com/api/?name=ToishY&size=300&bg-image=bmc" width="100px;" style="border-radius:50%"></br> <img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="75"></br>
<b>ToishY</b> <sub><b>HenrikBinggl</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/koddr">
<img src="https://avatars0.githubusercontent.com/u/11155743?s=460&v=4" width="75"></br>
<sub><b>koddr</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/MarvinJWendt">
<img src="https://avatars1.githubusercontent.com/u/31022056?s=460&v=4" width="75"></br>
<sub><b>MarvinJWendt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/toishy">
<img src="https://avatars1.githubusercontent.com/u/31921460?s=460&v=4" width="75"></br>
<sub><b>ToishY</b></sub>
</a> </a>
</td> </td>
</tr> </tr>

47
.github/README_pt.md vendored
View File

@ -3,7 +3,7 @@
<img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg"> <img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg">
</a> </a>
<br><br> <br><br>
<a href="https://github.com/gofiber/fiber/blob/master/README.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README.md">
<img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg"> <img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg">
</a> </a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md">
@ -231,6 +231,24 @@ func main() {
} }
``` ```
### Recover
```go
func main() {
app := fiber.New()
app.Get("/json", func(c *fiber.Ctx) {
panic("Something went wrong!")
})
app.Recover(func(c *fiber.Ctx) {
c.Status(500).Send(c.Error())
})
app.Listen(3000)
}
```
## 💬 Mídia ## 💬 Mídia
- [Bem-vindo ao Fiber — uma estrutura da Web com estilo Express.js, escrita em Go com ❤️](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) _por [Vic Shóstak](https://github.com/koddr), 03 fev 2020_ - [Bem-vindo ao Fiber — uma estrutura da Web com estilo Express.js, escrita em Go com ❤️](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) _por [Vic Shóstak](https://github.com/koddr), 03 fev 2020_
@ -244,16 +262,33 @@ Se você quer **agradecer** e/ou apoiar o desenvolvimento ativo do `Fiber`:
3. Escreva um review ou tutorial no [Medium](https://medium.com/), [Dev.to](https://dev.to/) ou blog pessoal. 3. Escreva um review ou tutorial no [Medium](https://medium.com/), [Dev.to](https://dev.to/) ou blog pessoal.
4. Nos ajude a traduzir esses `README` e a [documentação da API](https://fiber.wiki/) para outros idiomas. 4. Nos ajude a traduzir esses `README` e a [documentação da API](https://fiber.wiki/) para outros idiomas.
<a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" height="100" ></a>
## ☕ Supporters ## ☕ Supporters
<a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" height="100" ></a>
<table> <table>
<tr> <tr>
<td align="center"> <td align="center">
<a href="https://www.buymeacoffee.com/fenny"> <a href="https://github.com/bihe">
<img src="https://img.buymeacoffee.com/api/?name=ToishY&size=300&bg-image=bmc" width="100px;" style="border-radius:50%"></br> <img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="75"></br>
<b>ToishY</b> <sub><b>HenrikBinggl</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/koddr">
<img src="https://avatars0.githubusercontent.com/u/11155743?s=460&v=4" width="75"></br>
<sub><b>koddr</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/MarvinJWendt">
<img src="https://avatars1.githubusercontent.com/u/31022056?s=460&v=4" width="75"></br>
<sub><b>MarvinJWendt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/toishy">
<img src="https://avatars1.githubusercontent.com/u/31921460?s=460&v=4" width="75"></br>
<sub><b>ToishY</b></sub>
</a> </a>
</td> </td>
</tr> </tr>

47
.github/README_ru.md vendored
View File

@ -3,7 +3,7 @@
<img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg"> <img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg">
</a> </a>
<br><br> <br><br>
<a href="https://github.com/gofiber/fiber/blob/master/README.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README.md">
<img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg"> <img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg">
</a> </a>
<!--<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md"> <!--<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md">
@ -232,6 +232,24 @@ func main() {
} }
``` ```
### Recover
```go
func main() {
app := fiber.New()
app.Get("/json", func(c *fiber.Ctx) {
panic("Something went wrong!")
})
app.Recover(func(c *fiber.Ctx) {
c.Status(500).Send(c.Error())
})
app.Listen(3000)
}
```
## 💬 Медиа ## 💬 Медиа
- [Welcome to Fiber — an Express.js styled web framework written in Go with ❤️](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) *[Vic Shóstak](https://github.com/koddr), 3 февраля 2020 г.* - [Welcome to Fiber — an Express.js styled web framework written in Go with ❤️](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) *[Vic Shóstak](https://github.com/koddr), 3 февраля 2020 г.*
@ -245,16 +263,33 @@ func main() {
3. Сделайте обзор фреймворка на [Medium](https://medium.com/), [Dev.to](https://dev.to/) или в личном блоге. 3. Сделайте обзор фреймворка на [Medium](https://medium.com/), [Dev.to](https://dev.to/) или в личном блоге.
4. Помогите нам перевести `README` и [API](https://fiber.wiki/) на другой язык. 4. Помогите нам перевести `README` и [API](https://fiber.wiki/) на другой язык.
<a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" height="100" ></a>
## ☕ Supporters ## ☕ Supporters
<a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" height="100" ></a>
<table> <table>
<tr> <tr>
<td align="center"> <td align="center">
<a href="https://www.buymeacoffee.com/fenny"> <a href="https://github.com/bihe">
<img src="https://img.buymeacoffee.com/api/?name=ToishY&size=300&bg-image=bmc" width="100px;" style="border-radius:50%"></br> <img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="75"></br>
<b>ToishY</b> <sub><b>HenrikBinggl</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/koddr">
<img src="https://avatars0.githubusercontent.com/u/11155743?s=460&v=4" width="75"></br>
<sub><b>koddr</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/MarvinJWendt">
<img src="https://avatars1.githubusercontent.com/u/31022056?s=460&v=4" width="75"></br>
<sub><b>MarvinJWendt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/toishy">
<img src="https://avatars1.githubusercontent.com/u/31921460?s=460&v=4" width="75"></br>
<sub><b>ToishY</b></sub>
</a> </a>
</td> </td>
</tr> </tr>

View File

@ -3,7 +3,7 @@
<img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg"> <img alt="Fiber" height="100" src="https://github.com/gofiber/docs/blob/master/static/logo.svg">
</a> </a>
<br><br> <br><br>
<a href="https://github.com/gofiber/fiber/blob/master/README.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README.md">
<img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg"> <img height="20px" src="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.6/flags/4x3/gb.svg">
</a> </a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md"> <a href="https://github.com/gofiber/fiber/blob/master/.github/README_ru.md">
@ -157,6 +157,8 @@ func main() {
### 中间件 ### 中间件
<details>
<summary>📜 Show code snippet</summary>
```go ```go
func main() { func main() {
app := fiber.New() app := fiber.New()
@ -188,9 +190,12 @@ func main() {
app.Listen(3000) app.Listen(3000)
} }
``` ```
</summary>
### 404处理 ### 404处理
<details>
<summary>📜 Show code snippet</summary>
```go ```go
func main() { func main() {
app := fiber.New() app := fiber.New()
@ -206,9 +211,12 @@ func main() {
app.Listen(3000) app.Listen(3000)
} }
``` ```
</summary>
### JSON响应 ### JSON响应
<details>
<summary>📜 Show code snippet</summary>
```go ```go
func main() { func main() {
app := fiber.New() app := fiber.New()
@ -226,6 +234,28 @@ func main() {
app.Listen(3000) app.Listen(3000)
} }
``` ```
</summary>
### Recover
<details>
<summary>📜 Show code snippet</summary>
```go
func main() {
app := fiber.New()
app.Get("/json", func(c *fiber.Ctx) {
panic("Something went wrong!")
})
app.Recover(func(c *fiber.Ctx) {
c.Status(500).Send(c.Error())
})
app.Listen(3000)
}
```
</details>
## 💬 媒体 ## 💬 媒体
@ -238,9 +268,39 @@ func main() {
1. 将[GitHub Star](https://github.com/gofiber/fiber/stargazers)添加到项目中。 1. 将[GitHub Star](https://github.com/gofiber/fiber/stargazers)添加到项目中。
2. [在Twitter上](https://twitter.com/intent/tweet?text=%F0%9F%9A%80%20Fiber%20%E2%80%94%20is%20an%20Express.js%20inspired%20web%20framework%20build%20on%20Fasthttp%20for%20%23Go%20https%3A%2F%2Fgithub.com%2Fgofiber%2Ffiber)发布有关项目[的推文](https://twitter.com/intent/tweet?text=%F0%9F%9A%80%20Fiber%20%E2%80%94%20is%20an%20Express.js%20inspired%20web%20framework%20build%20on%20Fasthttp%20for%20%23Go%20https%3A%2F%2Fgithub.com%2Fgofiber%2Ffiber) 。 2. [在Twitter上](https://twitter.com/intent/tweet?text=%F0%9F%9A%80%20Fiber%20%E2%80%94%20is%20an%20Express.js%20inspired%20web%20framework%20build%20on%20Fasthttp%20for%20%23Go%20https%3A%2F%2Fgithub.com%2Fgofiber%2Ffiber)发布有关项目[的推文](https://twitter.com/intent/tweet?text=%F0%9F%9A%80%20Fiber%20%E2%80%94%20is%20an%20Express.js%20inspired%20web%20framework%20build%20on%20Fasthttp%20for%20%23Go%20https%3A%2F%2Fgithub.com%2Fgofiber%2Ffiber) 。
3. 在[Medium](https://medium.com/) [Dev.to](https://dev.to/)或个人博客上写评论或教程。 3. 在[Medium](https://medium.com/) [Dev.to](https://dev.to/)或个人博客上写评论或教程。
4. 帮助我们将此`README` [文件](https://fiber.wiki/)和[API文档](https://fiber.wiki/)翻译成另一种语言。 4. 帮助我们将此`README` [文件](https://fiber.wiki/)和[API文档](https://fiber.wiki/)翻译成另一种语言
## ☕ Supporters
<a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" height="100" ></a> <a href="https://www.buymeacoffee.com/fenny" target="_blank"><img src="https://github.com/gofiber/docs/blob/master/static/buy-morning-coffee-3x.gif" alt="Buy Me A Coffee" height="100" ></a>
<table>
<tr>
<td align="center">
<a href="https://github.com/bihe">
<img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="75"></br>
<sub><b>HenrikBinggl</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/koddr">
<img src="https://avatars0.githubusercontent.com/u/11155743?s=460&v=4" width="75"></br>
<sub><b>koddr</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/MarvinJWendt">
<img src="https://avatars1.githubusercontent.com/u/31022056?s=460&v=4" width="75"></br>
<sub><b>MarvinJWendt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/toishy">
<img src="https://avatars1.githubusercontent.com/u/31921460?s=460&v=4" width="75"></br>
<sub><b>ToishY</b></sub>
</a>
</td>
</tr>
</table>
### ⭐️ 星星 ### ⭐️ 星星