1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-22 23:04:14 +00:00

Merge pull request #284 from Fenny/master

v1.9.2
This commit is contained in:
Fenny 2020-04-23 01:51:49 +02:00 committed by GitHub
commit 7d8ec7340c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 656 additions and 548 deletions

95
.github/README.md vendored
View File

@ -1,5 +1,5 @@
<p align="center">
<a href="https://fiber.wiki">
<a href="https://gofiber.io">
<img alt="Fiber" height="125" src="https://github.com/gofiber/docs/blob/master/static/fiber_v2_logo.svg">
</a>
<br>
@ -24,9 +24,6 @@
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_de.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/de.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_nl.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/nl.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ko.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ko.svg">
</a>
@ -46,7 +43,7 @@
<a href="https://github.com/gofiber/fiber/releases">
<img src="https://img.shields.io/github/release/gofiber/fiber?style=flat-square">
</a>
<a href="https://fiber.wiki">
<a href="https://docs.gofiber.io">
<img src="https://img.shields.io/badge/api-docs-blue?style=flat-square">
</a>
<a href="#">
@ -102,7 +99,7 @@ go get -u github.com/gofiber/fiber
## 🤖 Benchmarks
These tests are performed by [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) and [Go Web](https://github.com/smallnest/go-web-framework-benchmark). If you want to see all results, please visit our [Wiki](https://fiber.wiki/benchmarks).
These tests are performed by [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) and [Go Web](https://github.com/smallnest/go-web-framework-benchmark). If you want to see all results, please visit our [Wiki](https://docs.gofiber.io/benchmarks).
<p float="left" align="middle">
<img src="https://github.com/gofiber/docs/blob/master/.gitbook/assets//benchmark-pipeline.png" width="49%">
@ -111,18 +108,18 @@ These tests are performed by [TechEmpower](https://github.com/TechEmpower/Framew
## 🎯 Features
- Robust [routing](https://fiber.wiki/routing)
- Serve [static files](https://fiber.wiki/application#static)
- Extreme [performance](https://fiber.wiki/benchmarks)
- [Low memory](https://fiber.wiki/benchmarks) footprint
- [API endpoints](https://fiber.wiki/context)
- [Middleware](https://fiber.wiki/middleware) & [Next](https://fiber.wiki/context#next) support
- Robust [routing](https://docs.gofiber.io/routing)
- Serve [static files](https://docs.gofiber.io/application#static)
- Extreme [performance](https://docs.gofiber.io/benchmarks)
- [Low memory](https://docs.gofiber.io/benchmarks) footprint
- [API endpoints](https://docs.gofiber.io/context)
- [Middleware](https://docs.gofiber.io/middleware) & [Next](https://docs.gofiber.io/context#next) support
- [Rapid](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) server-side programming
- [Template engines](https://fiber.wiki/middleware#template)
- [WebSocket support](https://fiber.wiki/middleware#websocket)
- [Rate Limiter](https://fiber.wiki/middleware#limiter)
- Translated in 11 other languages
- And much more, [explore Fiber](https://fiber.wiki/)
- [Template engines](https://docs.gofiber.io/middleware#template)
- [WebSocket support](https://docs.gofiber.io/middleware#websocket)
- [Rate Limiter](https://docs.gofiber.io/middleware#limiter)
- Translated in 10 other languages
- And much more, [explore Fiber](https://docs.gofiber.io/)
## 💡 Philosophy
@ -136,11 +133,11 @@ We **listen** to our users in [issues](https://github.com/gofiber/fiber/issues)
Listed below are some of the common examples.
> If you want to see more code examples, please visit our [Recipes repository](https://github.com/gofiber/recipes) or visit our [API documentation](https://fiber.wiki).
> If you want to see more code examples, please visit our [Recipes repository](https://github.com/gofiber/recipes) or visit our [API documentation](https://docs.gofiber.io).
### Routing
📖 https://fiber.wiki/#basic-routing
📖 https://docs.gofiber.io/#basic-routing
```go
@ -171,7 +168,7 @@ func main() {
### Serve static files
📖 https://fiber.wiki/application#static
📖 https://docs.gofiber.io/application#static
```go
func main() {
@ -194,8 +191,8 @@ func main() {
### Middleware & Next
📖 https://fiber.wiki/routing#middleware
📖 https://fiber.wiki/context#next
📖 https://docs.gofiber.io/routing#middleware
📖 https://docs.gofiber.io/context#next
```go
func main() {
@ -228,15 +225,15 @@ func main() {
### Template engines
📖 https://fiber.wiki/application#settings
📖 https://fiber.wiki/context#render
📖 https://fiber.wiki/middleware#template
📖 https://docs.gofiber.io/application#settings
📖 https://docs.gofiber.io/context#render
📖 https://docs.gofiber.io/middleware#template
Fiber supports the default [Go template engine](https://golang.org/pkg/html/template/)
But if you want to use another template engine like [amber](https://github.com/eknkc/amber), [handlebars](https://github.com/aymerick/raymond), [mustache](https://github.com/cbroglie/mustache) or [pug](https://github.com/Joker/jade).
You can use our [Template Middleware](https://fiber.wiki/middleware#template).
You can use our [Template Middleware](https://docs.gofiber.io/middleware#template).
```go
package main
@ -273,7 +270,7 @@ func main() {
### Grouping routes into chains
📖 https://fiber.wiki/application#group
📖 https://docs.gofiber.io/application#group
```go
func main() {
@ -298,7 +295,7 @@ func main() {
### Middleware logger
📖 https://fiber.wiki/middleware#logger
📖 https://docs.gofiber.io/middleware#logger
```go
import (
@ -324,7 +321,7 @@ func main() {
### Cross-Origin Resource Sharing (CORS)
📖 https://fiber.wiki/middleware#cors
📖 https://docs.gofiber.io/middleware#cors
```go
import (
@ -350,7 +347,7 @@ curl -H "Origin: http://example.com" --verbose http://localhost:3000
### Custom 404 response
📖 https://fiber.wiki/application#http-methods
📖 https://docs.gofiber.io/application#http-methods
```go
func main() {
@ -378,7 +375,7 @@ func main() {
### JSON Response
📖 https://fiber.wiki/context#json
📖 https://docs.gofiber.io/context#json
```go
type User struct {
@ -408,7 +405,7 @@ func main() {
### WebSocket Upgrade
📖 https://fiber.wiki/middleware#websocket
📖 https://docs.gofiber.io/middleware#websocket
```go
import (
@ -442,7 +439,7 @@ func main() {
### Recover middleware
📖 https://fiber.wiki/middleware#recover
📖 https://docs.gofiber.io/middleware#recover
```go
import (
@ -471,7 +468,7 @@ func main() {
## 🧬 Available Middlewares
For _easier_ and _more clear_ work, we've put [middleware](https://fiber.wiki/middleware) into separate repositories:
For _easier_ and _more clear_ work, we've put [middleware](https://docs.gofiber.io/middleware) into separate repositories:
- [Basic Authentication](https://github.com/gofiber/basicauth)
- [Key Authentication](https://github.com/gofiber/keyauth)
@ -510,6 +507,30 @@ If you want to say **thank you** and/or support the active development of `Fiber
<table>
<tr>
<td align="center">
<a href="https://github.com/thomasvvugt">
<img src="https://avatars2.githubusercontent.com/u/56607882?s=460&v=4" width="100px"></br>
<sub><b>Thomas van Vugt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/melkorm">
<img src="https://avatars2.githubusercontent.com/u/619996?s=460&v=4" width="100px"></br>
<sub><b>melkorm</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ekaputra07">
<img src="https://avatars3.githubusercontent.com/u/1094221?s=460&v=4" width="100px"></br>
<sub><b>Eka Putra</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/bihe">
<img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="100px"></br>
@ -552,12 +573,6 @@ If you want to say **thank you** and/or support the active development of `Fiber
<sub><b>ekaputra07</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
</tr>
</table>

97
.github/README_de.md vendored
View File

@ -1,5 +1,5 @@
<p align="center">
<a href="https://fiber.wiki">
<a href="https://gofiber.io">
<img alt="Fiber" height="125" src="https://github.com/gofiber/docs/blob/master/static/fiber_v2_logo.svg">
</a>
<br>
@ -24,9 +24,6 @@
<!--<a href="https://github.com/gofiber/fiber/blob/master/.github/README_de.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/de.svg">
</a>-->
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_nl.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/nl.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ko.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ko.svg">
</a>
@ -46,7 +43,7 @@
<a href="https://github.com/gofiber/fiber/releases">
<img src="https://img.shields.io/github/release/gofiber/fiber?style=flat-square">
</a>
<a href="https://fiber.wiki">
<a href="https://docs.gofiber.io">
<img src="https://img.shields.io/badge/api-docs-blue?style=flat-square">
</a>
<a href="#">
@ -105,7 +102,7 @@ go get -u github.com/gofiber/fiber
## 🤖 Benchmarks
Diese Tests wurden von [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) und [Go Web](https://github.com/smallnest/go-web-framework-benchmark) ausgeführt. Falls du alle Resultate sehen möchtest, besuche bitte unser [Wiki](https://fiber.wiki/benchmarks).
Diese Tests wurden von [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) und [Go Web](https://github.com/smallnest/go-web-framework-benchmark) ausgeführt. Falls du alle Resultate sehen möchtest, besuche bitte unser [Wiki](https://docs.gofiber.io/benchmarks).
<p float="left" align="middle">
<img src="https://github.com/gofiber/docs/blob/master/.gitbook/assets//benchmark-pipeline.png" width="49%">
@ -114,18 +111,18 @@ Diese Tests wurden von [TechEmpower](https://github.com/TechEmpower/FrameworkBen
## 🎯 Eigenschaften
- Robustes [Routing](https://fiber.wiki/routing)
- Bereitstellen von [statischen Dateien](https://fiber.wiki/application#static)
- Extreme [Performance](https://fiber.wiki/benchmarks)
- [Geringe Arbeitsspeicher](https://fiber.wiki/benchmarks) verwendung
- Express [API Endpunkte](https://fiber.wiki/context)
- [Middleware](https://fiber.wiki/middleware) & [Next](https://fiber.wiki/context#next) Support
- Robustes [Routing](https://docs.gofiber.io/routing)
- Bereitstellen von [statischen Dateien](https://docs.gofiber.io/application#static)
- Extreme [Performance](https://docs.gofiber.io/benchmarks)
- [Geringe Arbeitsspeicher](https://docs.gofiber.io/benchmarks) verwendung
- Express [API Endpunkte](https://docs.gofiber.io/context)
- [Middleware](https://docs.gofiber.io/middleware) & [Next](https://docs.gofiber.io/context#next) Support
- [Schnelle](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) serverseitige Programmierung
- [Template engines](https://fiber.wiki/middleware#template)
- [WebSocket support](https://fiber.wiki/middleware#websocket)
- [Rate Limiter](https://fiber.wiki/middleware#limiter)
- Available in [11 languages](https://fiber.wiki/)
- Und vieles mehr - [erkunde Fiber](https://fiber.wiki/)
- [Template engines](https://docs.gofiber.io/middleware#template)
- [WebSocket support](https://docs.gofiber.io/middleware#websocket)
- [Rate Limiter](https://docs.gofiber.io/middleware#limiter)
- Available in [10 languages](https://docs.gofiber.io/)
- Und vieles mehr - [erkunde Fiber](https://docs.gofiber.io/)
## 💡 Philosophie
@ -135,11 +132,11 @@ Fiber ist **inspiriert** von Expressjs, dem beliebtesten Web-Framework im Intern
## 👀 Beispiele
Nachfolgend sind einige der gängigen Beispiele aufgeführt. Wenn du weitere Codebeispiele sehen möchten, besuche bitte unser ["Recipes Repository"](https://github.com/gofiber/recipes) oder besuche unsere [API Dokumentation](https://fiber.wiki).
Nachfolgend sind einige der gängigen Beispiele aufgeführt. Wenn du weitere Codebeispiele sehen möchten, besuche bitte unser ["Recipes Repository"](https://github.com/gofiber/recipes) oder besuche unsere [API Dokumentation](https://docs.gofiber.io).
### Routing
📖 https://fiber.wiki/#basic-routing
📖 https://docs.gofiber.io/#basic-routing
```go
@ -170,7 +167,7 @@ func main() {
### Serve static files
📖 https://fiber.wiki/application#static
📖 https://docs.gofiber.io/application#static
```go
func main() {
@ -193,8 +190,8 @@ func main() {
### Middleware & Next
📖 https://fiber.wiki/routing#middleware
📖 https://fiber.wiki/context#next
📖 https://docs.gofiber.io/routing#middleware
📖 https://docs.gofiber.io/context#next
```go
func main() {
@ -227,15 +224,15 @@ func main() {
### Template engines
📖 https://fiber.wiki/application#settings
📖 https://fiber.wiki/context#render
📖 https://fiber.wiki/middleware#template
📖 https://docs.gofiber.io/application#settings
📖 https://docs.gofiber.io/context#render
📖 https://docs.gofiber.io/middleware#template
Fiber supports the default [Go template engine](https://golang.org/pkg/html/template/)
But if you want to use another template engine like [amber](https://github.com/eknkc/amber), [handlebars](https://github.com/aymerick/raymond), [mustache](https://github.com/cbroglie/mustache) or [pug](https://github.com/Joker/jade).
You can use our [Template Middleware](https://fiber.wiki/middleware#template).
You can use our [Template Middleware](https://docs.gofiber.io/middleware#template).
```go
package main
@ -272,7 +269,7 @@ func main() {
### Grouping routes into chains
📖 https://fiber.wiki/application#group
📖 https://docs.gofiber.io/application#group
```go
func main() {
@ -297,7 +294,7 @@ func main() {
### Middleware logger
📖 https://fiber.wiki/middleware#logger
📖 https://docs.gofiber.io/middleware#logger
```go
import (
@ -323,7 +320,7 @@ func main() {
### Cross-Origin Resource Sharing (CORS)
📖 https://fiber.wiki/middleware#cors
📖 https://docs.gofiber.io/middleware#cors
```go
import (
@ -349,7 +346,7 @@ curl -H "Origin: http://example.com" --verbose http://localhost:3000
### Custom 404 response
📖 https://fiber.wiki/application#http-methods
📖 https://docs.gofiber.io/application#http-methods
```go
func main() {
@ -377,7 +374,7 @@ func main() {
### JSON Response
📖 https://fiber.wiki/context#json
📖 https://docs.gofiber.io/context#json
```go
type User struct {
@ -407,7 +404,7 @@ func main() {
### WebSocket Upgrade
📖 https://fiber.wiki/middleware#websocket
📖 https://docs.gofiber.io/middleware#websocket
```go
import (
@ -441,7 +438,7 @@ func main() {
### Recover middleware
📖 https://fiber.wiki/middleware#recover
📖 https://docs.gofiber.io/middleware#recover
```go
import (
@ -470,7 +467,7 @@ func main() {
## 🧬 Verfügbare Middlewares
Für _eine leichtere_ und _übersichtlichere_ arbeit haben wir die [middleware](https://fiber.wiki/middleware) in getrennte repositories gestellt:
Für _eine leichtere_ und _übersichtlichere_ arbeit haben wir die [middleware](https://docs.gofiber.io/middleware) in getrennte repositories gestellt:
- [Basic Authentication](https://github.com/gofiber/basicauth)
- [Key Authentication](https://github.com/gofiber/keyauth)
@ -502,12 +499,36 @@ Falls du **danke** sagen möchtest und/oder aktiv die Entwicklung von `fiber` f
1. Füge dem Projekt einen [GitHub Stern](https://github.com/gofiber/fiber/stargazers) hinzu.
2. Twittere über das Projekt [auf deinem 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).
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://docs.gofiber.io/) in eine andere Sprache zu übersetzen.
## ☕ Coffee Supporters
<table>
<tr>
<td align="center">
<a href="https://github.com/thomasvvugt">
<img src="https://avatars2.githubusercontent.com/u/56607882?s=460&v=4" width="100px"></br>
<sub><b>Thomas van Vugt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/melkorm">
<img src="https://avatars2.githubusercontent.com/u/619996?s=460&v=4" width="100px"></br>
<sub><b>melkorm</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ekaputra07">
<img src="https://avatars3.githubusercontent.com/u/1094221?s=460&v=4" width="100px"></br>
<sub><b>Eka Putra</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/bihe">
<img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="100px"></br>
@ -550,12 +571,6 @@ Falls du **danke** sagen möchtest und/oder aktiv die Entwicklung von `fiber` f
<sub><b>ekaputra07</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
</tr>
</table>

95
.github/README_es.md vendored
View File

@ -1,5 +1,5 @@
<p align="center">
<a href="https://fiber.wiki">
<a href="https://gofiber.io">
<img alt="Fiber" height="125" src="https://github.com/gofiber/docs/blob/master/static/fiber_v2_logo.svg">
</a>
<br>
@ -24,9 +24,6 @@
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_de.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/de.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_nl.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/nl.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ko.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ko.svg">
</a>
@ -46,7 +43,7 @@
<a href="https://github.com/gofiber/fiber/releases">
<img src="https://img.shields.io/github/release/gofiber/fiber?style=flat-square">
</a>
<a href="https://fiber.wiki">
<a href="https://docs.gofiber.io">
<img src="https://img.shields.io/badge/api-docs-blue?style=flat-square">
</a>
<a href="#">
@ -105,7 +102,7 @@ go get github.com/gofiber/fiber/...
## 🤖 Puntos de referencia
Estas pruebas son realizadas por [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) y [Go Web](https://github.com/smallnest/go-web-framework-benchmark) . Si desea ver todos los resultados, visite nuestro [Wiki](https://fiber.wiki/benchmarks) .
Estas pruebas son realizadas por [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) y [Go Web](https://github.com/smallnest/go-web-framework-benchmark) . Si desea ver todos los resultados, visite nuestro [Wiki](https://docs.gofiber.io/benchmarks) .
<p float="left" align="middle">
<img src="https://github.com/gofiber/docs/blob/master/.gitbook/assets//benchmark-pipeline.png" width="49%">
@ -114,18 +111,18 @@ Estas pruebas son realizadas por [TechEmpower](https://github.com/TechEmpower/Fr
## 🎯 Características
- [Enrutamiento](https://fiber.wiki/routing) robusto
- Servir [archivos estáticos](https://fiber.wiki/application#static)
- [Rendimiento](https://fiber.wiki/benchmarks) extremo
- [Poca](https://fiber.wiki/benchmarks) huella de [memoria](https://fiber.wiki/benchmarks)
- [Puntos finales de API](https://fiber.wiki/context) Express
- Middleware y [próximo](https://fiber.wiki/context#next) soporte
- [Enrutamiento](https://docs.gofiber.io/routing) robusto
- Servir [archivos estáticos](https://docs.gofiber.io/application#static)
- [Rendimiento](https://docs.gofiber.io/benchmarks) extremo
- [Poca](https://docs.gofiber.io/benchmarks) huella de [memoria](https://docs.gofiber.io/benchmarks)
- [Puntos finales de API](https://docs.gofiber.io/context) Express
- Middleware y [próximo](https://docs.gofiber.io/context#next) soporte
- Programación [rápida](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) del lado del servidor
- [Template engines](https://fiber.wiki/middleware#template)
- [WebSocket support](https://fiber.wiki/middleware#websocket)
- [Rate Limiter](https://fiber.wiki/middleware#limiter)
- Available in [11 languages](https://fiber.wiki/)
- Y mucho más, [explore Fiber](https://fiber.wiki/)
- [Template engines](https://docs.gofiber.io/middleware#template)
- [WebSocket support](https://docs.gofiber.io/middleware#websocket)
- [Rate Limiter](https://docs.gofiber.io/middleware#limiter)
- Available in [10 languages](https://docs.gofiber.io/)
- Y mucho más, [explore Fiber](https://docs.gofiber.io/)
## 💡 Filosofía
@ -135,11 +132,11 @@ Fiber está **inspirado** en Expressjs, el framework web más popular en Interne
## 👀 Ejemplos
A continuación se enumeran algunos de los ejemplos comunes. Si desea ver más ejemplos de código, visite nuestro [repositorio de Recetas](https://github.com/gofiber/recipes) o nuestra [documentación de API](https://fiber.wiki) .
A continuación se enumeran algunos de los ejemplos comunes. Si desea ver más ejemplos de código, visite nuestro [repositorio de Recetas](https://github.com/gofiber/recipes) o nuestra [documentación de API](https://docs.gofiber.io) .
### Routing
📖 https://fiber.wiki/#basic-routing
📖 https://docs.gofiber.io/#basic-routing
```go
@ -170,7 +167,7 @@ func main() {
### Serve static files
📖 https://fiber.wiki/application#static
📖 https://docs.gofiber.io/application#static
```go
func main() {
@ -193,8 +190,8 @@ func main() {
### Middleware & Next
📖 https://fiber.wiki/routing#middleware
📖 https://fiber.wiki/context#next
📖 https://docs.gofiber.io/routing#middleware
📖 https://docs.gofiber.io/context#next
```go
func main() {
@ -227,15 +224,15 @@ func main() {
### Template engines
📖 https://fiber.wiki/application#settings
📖 https://fiber.wiki/context#render
📖 https://fiber.wiki/middleware#template
📖 https://docs.gofiber.io/application#settings
📖 https://docs.gofiber.io/context#render
📖 https://docs.gofiber.io/middleware#template
Fiber supports the default [Go template engine](https://golang.org/pkg/html/template/)
But if you want to use another template engine like [amber](https://github.com/eknkc/amber), [handlebars](https://github.com/aymerick/raymond), [mustache](https://github.com/cbroglie/mustache) or [pug](https://github.com/Joker/jade).
You can use our [Template Middleware](https://fiber.wiki/middleware#template).
You can use our [Template Middleware](https://docs.gofiber.io/middleware#template).
```go
package main
@ -272,7 +269,7 @@ func main() {
### Grouping routes into chains
📖 https://fiber.wiki/application#group
📖 https://docs.gofiber.io/application#group
```go
func main() {
@ -297,7 +294,7 @@ func main() {
### Middleware logger
📖 https://fiber.wiki/middleware#logger
📖 https://docs.gofiber.io/middleware#logger
```go
import (
@ -323,7 +320,7 @@ func main() {
### Cross-Origin Resource Sharing (CORS)
📖 https://fiber.wiki/middleware#cors
📖 https://docs.gofiber.io/middleware#cors
```go
import (
@ -349,7 +346,7 @@ curl -H "Origin: http://example.com" --verbose http://localhost:3000
### Custom 404 response
📖 https://fiber.wiki/application#http-methods
📖 https://docs.gofiber.io/application#http-methods
```go
func main() {
@ -377,7 +374,7 @@ func main() {
### JSON Response
📖 https://fiber.wiki/context#json
📖 https://docs.gofiber.io/context#json
```go
type User struct {
@ -407,7 +404,7 @@ func main() {
### WebSocket Upgrade
📖 https://fiber.wiki/middleware#websocket
📖 https://docs.gofiber.io/middleware#websocket
```go
import (
@ -441,7 +438,7 @@ func main() {
### Recover middleware
📖 https://fiber.wiki/middleware#recover
📖 https://docs.gofiber.io/middleware#recover
```go
import (
@ -483,12 +480,36 @@ Si quiere **agradecer** y/o apoyar el desarrollo activo de la `Fiber`:
1. Agregue una [estrella de GitHub](https://github.com/gofiber/fiber/stargazers) al proyecto.
2. Tuitea sobre el proyecto [en tu 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).
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://docs.gofiber.io/) a otro idioma.
## ☕ Coffee Supporters
<table>
<tr>
<td align="center">
<a href="https://github.com/thomasvvugt">
<img src="https://avatars2.githubusercontent.com/u/56607882?s=460&v=4" width="100px"></br>
<sub><b>Thomas van Vugt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/melkorm">
<img src="https://avatars2.githubusercontent.com/u/619996?s=460&v=4" width="100px"></br>
<sub><b>melkorm</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ekaputra07">
<img src="https://avatars3.githubusercontent.com/u/1094221?s=460&v=4" width="100px"></br>
<sub><b>Eka Putra</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/bihe">
<img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="100px"></br>
@ -531,12 +552,6 @@ Si quiere **agradecer** y/o apoyar el desarrollo activo de la `Fiber`:
<sub><b>ekaputra07</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
</tr>
</table>

93
.github/README_fr.md vendored
View File

@ -1,5 +1,5 @@
<p align="center">
<a href="https://fiber.wiki">
<a href="https://gofiber.io">
<img alt="Fiber" height="125" src="https://github.com/gofiber/docs/blob/master/static/fiber_v2_logo.svg">
</a>
<br>
@ -24,9 +24,6 @@
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_de.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/de.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_nl.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/nl.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ko.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ko.svg">
</a>
@ -46,7 +43,7 @@
<a href="https://github.com/gofiber/fiber/releases">
<img src="https://img.shields.io/github/release/gofiber/fiber?style=flat-square">
</a>
<a href="https://fiber.wiki">
<a href="https://docs.gofiber.io">
<img src="https://img.shields.io/badge/api-docs-blue?style=flat-square">
</a>
<a href="#">
@ -105,7 +102,7 @@ go get -u github.com/gofiber/fiber/...
## 🤖 Benchmarks
Ces tests sont effectués par [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) et [Go Web](https://github.com/smallnest/go-web-framework-benchmark). Si vous voulez voir tous les résultats, n'hésitez pas à consulter notre [Wiki](https://fiber.wiki/benchmarks).
Ces tests sont effectués par [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) et [Go Web](https://github.com/smallnest/go-web-framework-benchmark). Si vous voulez voir tous les résultats, n'hésitez pas à consulter notre [Wiki](https://docs.gofiber.io/benchmarks).
<p float="left" align="middle">
<img src="https://github.com/gofiber/docs/blob/master/.gitbook/assets//benchmark-pipeline.png" width="49%">
@ -114,18 +111,18 @@ Ces tests sont effectués par [TechEmpower](https://github.com/TechEmpower/Frame
## 🎯 Features
- [Routing](https://fiber.wiki/routing) robuste
- Serve [static files](https://fiber.wiki/application#static)
- [Performances](https://fiber.wiki/benchmarks) extrêmes
- [Faible empreinte mémoire](https://fiber.wiki/benchmarks)
- [API endpoints](https://fiber.wiki/context)
- Middleware & [Next](https://fiber.wiki/context#next) support
- [Routing](https://docs.gofiber.io/routing) robuste
- Serve [static files](https://docs.gofiber.io/application#static)
- [Performances](https://docs.gofiber.io/benchmarks) extrêmes
- [Faible empreinte mémoire](https://docs.gofiber.io/benchmarks)
- [API endpoints](https://docs.gofiber.io/context)
- Middleware & [Next](https://docs.gofiber.io/context#next) support
- Programmation côté serveur [rapide](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497)
- [Template engines](https://fiber.wiki/middleware#template)
- [WebSocket support](https://fiber.wiki/middleware#websocket)
- [Rate Limiter](https://fiber.wiki/middleware#limiter)
- Available in [11 languages](https://fiber.wiki/)
- Et plus encore, [explorez Fiber](https://fiber.wiki/)
- [Template engines](https://docs.gofiber.io/middleware#template)
- [WebSocket support](https://docs.gofiber.io/middleware#websocket)
- [Rate Limiter](https://docs.gofiber.io/middleware#limiter)
- Available in [10 languages](https://docs.gofiber.io/)
- Et plus encore, [explorez Fiber](https://docs.gofiber.io/)
## 💡 Philosophie
@ -135,11 +132,11 @@ Fiber est **inspiré** par Express, le framework web le plus populaire d'Interne
## 👀 Exemples
Ci-dessous quelques exemples courants. Si vous voulez voir plus d'exemples, rendez-vous sur notre ["Recipes repository"](https://github.com/gofiber/recipes) ou visitez notre [documentation API](https://fiber.wiki).
Ci-dessous quelques exemples courants. Si vous voulez voir plus d'exemples, rendez-vous sur notre ["Recipes repository"](https://github.com/gofiber/recipes) ou visitez notre [documentation API](https://docs.gofiber.io).
### Routing
📖 https://fiber.wiki/#basic-routing
📖 https://docs.gofiber.io/#basic-routing
```go
@ -170,7 +167,7 @@ func main() {
### Serve static files
📖 https://fiber.wiki/application#static
📖 https://docs.gofiber.io/application#static
```go
func main() {
@ -193,8 +190,8 @@ func main() {
### Middleware & Next
📖 https://fiber.wiki/routing#middleware
📖 https://fiber.wiki/context#next
📖 https://docs.gofiber.io/routing#middleware
📖 https://docs.gofiber.io/context#next
```go
func main() {
@ -227,15 +224,15 @@ func main() {
### Template engines
📖 https://fiber.wiki/application#settings
📖 https://fiber.wiki/context#render
📖 https://fiber.wiki/middleware#template
📖 https://docs.gofiber.io/application#settings
📖 https://docs.gofiber.io/context#render
📖 https://docs.gofiber.io/middleware#template
Fiber supports the default [Go template engine](https://golang.org/pkg/html/template/)
But if you want to use another template engine like [amber](https://github.com/eknkc/amber), [handlebars](https://github.com/aymerick/raymond), [mustache](https://github.com/cbroglie/mustache) or [pug](https://github.com/Joker/jade).
You can use our [Template Middleware](https://fiber.wiki/middleware#template).
You can use our [Template Middleware](https://docs.gofiber.io/middleware#template).
```go
package main
@ -272,7 +269,7 @@ func main() {
### Grouping routes into chains
📖 https://fiber.wiki/application#group
📖 https://docs.gofiber.io/application#group
```go
func main() {
@ -297,7 +294,7 @@ func main() {
### Middleware logger
📖 https://fiber.wiki/middleware#logger
📖 https://docs.gofiber.io/middleware#logger
```go
import (
@ -323,7 +320,7 @@ func main() {
### Cross-Origin Resource Sharing (CORS)
📖 https://fiber.wiki/middleware#cors
📖 https://docs.gofiber.io/middleware#cors
```go
import (
@ -349,7 +346,7 @@ curl -H "Origin: http://example.com" --verbose http://localhost:3000
### Custom 404 response
📖 https://fiber.wiki/application#http-methods
📖 https://docs.gofiber.io/application#http-methods
```go
func main() {
@ -377,7 +374,7 @@ func main() {
### JSON Response
📖 https://fiber.wiki/context#json
📖 https://docs.gofiber.io/context#json
```go
type User struct {
@ -407,7 +404,7 @@ func main() {
### WebSocket Upgrade
📖 https://fiber.wiki/middleware#websocket
📖 https://docs.gofiber.io/middleware#websocket
```go
import (
@ -441,7 +438,7 @@ func main() {
### Recover middleware
📖 https://fiber.wiki/middleware#recover
📖 https://docs.gofiber.io/middleware#recover
```go
import (
@ -489,6 +486,30 @@ Si vous voulez nous remercier et/ou soutenir le développement actif de `Fiber`:
<table>
<tr>
<td align="center">
<a href="https://github.com/thomasvvugt">
<img src="https://avatars2.githubusercontent.com/u/56607882?s=460&v=4" width="100px"></br>
<sub><b>Thomas van Vugt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/melkorm">
<img src="https://avatars2.githubusercontent.com/u/619996?s=460&v=4" width="100px"></br>
<sub><b>melkorm</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ekaputra07">
<img src="https://avatars3.githubusercontent.com/u/1094221?s=460&v=4" width="100px"></br>
<sub><b>Eka Putra</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/bihe">
<img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="100px"></br>
@ -531,12 +552,6 @@ Si vous voulez nous remercier et/ou soutenir le développement actif de `Fiber`:
<sub><b>ekaputra07</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
</tr>
</table>

93
.github/README_id.md vendored
View File

@ -1,5 +1,5 @@
<p align="center">
<a href="https://fiber.wiki">
<a href="https://gofiber.io">
<img alt="Fiber" height="125" src="https://github.com/gofiber/docs/blob/master/static/fiber_v2_logo.svg">
</a>
<br>
@ -24,9 +24,6 @@
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_de.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/de.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_nl.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/nl.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ko.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ko.svg">
</a>
@ -46,7 +43,7 @@
<a href="https://github.com/gofiber/fiber/releases">
<img src="https://img.shields.io/github/release/gofiber/fiber?style=flat-square">
</a>
<a href="https://fiber.wiki">
<a href="https://docs.gofiber.io">
<img src="https://img.shields.io/badge/api-docs-blue?style=flat-square">
</a>
<a href="#">
@ -105,7 +102,7 @@ go get -u github.com/gofiber/fiber/...
## 🤖 Pengukuran Kinerja
Pengukuran ini dilakukan oleh [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) dan [Go Web](https://github.com/smallnest/go-web-framework-benchmark). Apabila anda ingin melihat hasil lengkapnya, silahkan kunjungi halaman [Wiki](https://fiber.wiki/benchmarks) kami.
Pengukuran ini dilakukan oleh [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) dan [Go Web](https://github.com/smallnest/go-web-framework-benchmark). Apabila anda ingin melihat hasil lengkapnya, silahkan kunjungi halaman [Wiki](https://docs.gofiber.io/benchmarks) kami.
<p float="left" align="middle">
<img src="https://github.com/gofiber/docs/blob/master/.gitbook/assets//benchmark-pipeline.png" width="49%">
@ -114,18 +111,18 @@ Pengukuran ini dilakukan oleh [TechEmpower](https://github.com/TechEmpower/Frame
## 🎯 Fitur
- Sistem [Routing](https://fiber.wiki/routing) yang solid
- Serve [file statis](https://fiber.wiki/application#static)
- [Kinerja](https://fiber.wiki/benchmarks) ekstrim
- [Penggunaan memori](https://fiber.wiki/benchmarks) yang kecil
- Cocok untuk [API](https://fiber.wiki/context)
- Mendukung Middleware & [Next](https://fiber.wiki/context#next) seperti Express
- Sistem [Routing](https://docs.gofiber.io/routing) yang solid
- Serve [file statis](https://docs.gofiber.io/application#static)
- [Kinerja](https://docs.gofiber.io/benchmarks) ekstrim
- [Penggunaan memori](https://docs.gofiber.io/benchmarks) yang kecil
- Cocok untuk [API](https://docs.gofiber.io/context)
- Mendukung Middleware & [Next](https://docs.gofiber.io/context#next) seperti Express
- Kembangkan aplikasi dengan [Cepat](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497)
- [Template engines](https://fiber.wiki/middleware#template)
- [WebSocket support](https://fiber.wiki/middleware#websocket)
- [Rate Limiter](https://fiber.wiki/middleware#limiter)
- Available in [11 languages](https://fiber.wiki/)
- Dan masih banyak lagi, [kunjungi Fiber](https://fiber.wiki/)
- [Template engines](https://docs.gofiber.io/middleware#template)
- [WebSocket support](https://docs.gofiber.io/middleware#websocket)
- [Rate Limiter](https://docs.gofiber.io/middleware#limiter)
- Available in [10 languages](https://docs.gofiber.io/)
- Dan masih banyak lagi, [kunjungi Fiber](https://docs.gofiber.io/)
## 💡 Filosofi
@ -137,11 +134,11 @@ Kami **mendengarkan** para pengguna di [GitHub Issues](https://github.com/gofibe
## 👀 Contoh
Dibawah ini terdapat beberapa contoh penggunaan. Jika anda ingin contoh lainnya, silahkan kunjungi [Gudang resep](https://github.com/gofiber/recipes) atau kunjungi [Dokumentasi API](https://fiber.wiki) kami.
Dibawah ini terdapat beberapa contoh penggunaan. Jika anda ingin contoh lainnya, silahkan kunjungi [Gudang resep](https://github.com/gofiber/recipes) atau kunjungi [Dokumentasi API](https://docs.gofiber.io) kami.
### Routing
📖 https://fiber.wiki/#basic-routing
📖 https://docs.gofiber.io/#basic-routing
```go
@ -172,7 +169,7 @@ func main() {
### Serve static files
📖 https://fiber.wiki/application#static
📖 https://docs.gofiber.io/application#static
```go
func main() {
@ -195,8 +192,8 @@ func main() {
### Middleware & Next
📖 https://fiber.wiki/routing#middleware
📖 https://fiber.wiki/context#next
📖 https://docs.gofiber.io/routing#middleware
📖 https://docs.gofiber.io/context#next
```go
func main() {
@ -229,15 +226,15 @@ func main() {
### Template engines
📖 https://fiber.wiki/application#settings
📖 https://fiber.wiki/context#render
📖 https://fiber.wiki/middleware#template
📖 https://docs.gofiber.io/application#settings
📖 https://docs.gofiber.io/context#render
📖 https://docs.gofiber.io/middleware#template
Fiber supports the default [Go template engine](https://golang.org/pkg/html/template/)
But if you want to use another template engine like [amber](https://github.com/eknkc/amber), [handlebars](https://github.com/aymerick/raymond), [mustache](https://github.com/cbroglie/mustache) or [pug](https://github.com/Joker/jade).
You can use our [Template Middleware](https://fiber.wiki/middleware#template).
You can use our [Template Middleware](https://docs.gofiber.io/middleware#template).
```go
package main
@ -274,7 +271,7 @@ func main() {
### Grouping routes into chains
📖 https://fiber.wiki/application#group
📖 https://docs.gofiber.io/application#group
```go
func main() {
@ -299,7 +296,7 @@ func main() {
### Middleware logger
📖 https://fiber.wiki/middleware#logger
📖 https://docs.gofiber.io/middleware#logger
```go
import (
@ -325,7 +322,7 @@ func main() {
### Cross-Origin Resource Sharing (CORS)
📖 https://fiber.wiki/middleware#cors
📖 https://docs.gofiber.io/middleware#cors
```go
import (
@ -351,7 +348,7 @@ curl -H "Origin: http://example.com" --verbose http://localhost:3000
### Custom 404 response
📖 https://fiber.wiki/application#http-methods
📖 https://docs.gofiber.io/application#http-methods
```go
func main() {
@ -379,7 +376,7 @@ func main() {
### JSON Response
📖 https://fiber.wiki/context#json
📖 https://docs.gofiber.io/context#json
```go
type User struct {
@ -409,7 +406,7 @@ func main() {
### WebSocket Upgrade
📖 https://fiber.wiki/middleware#websocket
📖 https://docs.gofiber.io/middleware#websocket
```go
import (
@ -443,7 +440,7 @@ func main() {
### Recover middleware
📖 https://fiber.wiki/middleware#recover
📖 https://docs.gofiber.io/middleware#recover
```go
import (
@ -492,6 +489,30 @@ Apabila anda ingin mengucapkan **terima kasih** dan/atau mendukung pengembangan
<table>
<tr>
<td align="center">
<a href="https://github.com/thomasvvugt">
<img src="https://avatars2.githubusercontent.com/u/56607882?s=460&v=4" width="100px"></br>
<sub><b>Thomas van Vugt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/melkorm">
<img src="https://avatars2.githubusercontent.com/u/619996?s=460&v=4" width="100px"></br>
<sub><b>melkorm</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ekaputra07">
<img src="https://avatars3.githubusercontent.com/u/1094221?s=460&v=4" width="100px"></br>
<sub><b>Eka Putra</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/bihe">
<img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="100px"></br>
@ -534,12 +555,6 @@ Apabila anda ingin mengucapkan **terima kasih** dan/atau mendukung pengembangan
<sub><b>ekaputra07</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
</tr>
</table>

95
.github/README_ja.md vendored
View File

@ -1,5 +1,5 @@
<p align="center">
<a href="https://fiber.wiki">
<a href="https://gofiber.io">
<img alt="Fiber" height="125" src="https://github.com/gofiber/docs/blob/master/static/fiber_v2_logo.svg">
</a>
<br>
@ -24,9 +24,6 @@
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_de.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/de.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_nl.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/nl.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ko.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ko.svg">
</a>
@ -46,7 +43,7 @@
<a href="https://github.com/gofiber/fiber/releases">
<img src="https://img.shields.io/github/release/gofiber/fiber?style=flat-square">
</a>
<a href="https://fiber.wiki">
<a href="https://docs.gofiber.io">
<img src="https://img.shields.io/badge/api-docs-blue?style=flat-square">
</a>
<a href="#">
@ -106,7 +103,7 @@ go get -u github.com/gofiber/fiber/...
## 🤖 ベンチマーク
これらのテストは[TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks)および[Go Web](https://github.com/smallnest/go-web-framework-benchmark)によって計測を行っています 。すべての結果を表示するには、 [Wiki](https://fiber.wiki/benchmarks)にアクセスしてください。
これらのテストは[TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks)および[Go Web](https://github.com/smallnest/go-web-framework-benchmark)によって計測を行っています 。すべての結果を表示するには、 [Wiki](https://docs.gofiber.io/benchmarks)にアクセスしてください。
<p float="left" align="middle">
<img src="https://github.com/gofiber/docs/blob/master/.gitbook/assets//benchmark-pipeline.png" width="49%">
@ -115,18 +112,18 @@ go get -u github.com/gofiber/fiber/...
## 🎯 機能
- 堅牢な[ルーティング](https://fiber.wiki/routing)
- [静的ファイル](https://fiber.wiki/application#static)のサポート
- 究極の[パフォーマンス](https://fiber.wiki/benchmarks)
- [低メモリ](https://fiber.wiki/benchmarks)フットプリント
- Express [APIエンドポイント](https://fiber.wiki/context)
- Middlewareと[Next](https://fiber.wiki/context#next)のサポート
- 堅牢な[ルーティング](https://docs.gofiber.io/routing)
- [静的ファイル](https://docs.gofiber.io/application#static)のサポート
- 究極の[パフォーマンス](https://docs.gofiber.io/benchmarks)
- [低メモリ](https://docs.gofiber.io/benchmarks)フットプリント
- Express [APIエンドポイント](https://docs.gofiber.io/context)
- Middlewareと[Next](https://docs.gofiber.io/context#next)のサポート
- [迅速](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497)なサーバーサイドプログラミング
- [Template engines](https://fiber.wiki/middleware#template)
- [WebSocket support](https://fiber.wiki/middleware#websocket)
- [Rate Limiter](https://fiber.wiki/middleware#limiter)
- Available in [11 languages](https://fiber.wiki/)
- [Fiber](https://fiber.wiki/)をもっと知る
- [Template engines](https://docs.gofiber.io/middleware#template)
- [WebSocket support](https://docs.gofiber.io/middleware#websocket)
- [Rate Limiter](https://docs.gofiber.io/middleware#limiter)
- Available in [10 languages](https://docs.gofiber.io/)
- [Fiber](https://docs.gofiber.io/)をもっと知る
## 💡 哲学
@ -139,11 +136,11 @@ Fiberは人気の高いWebフレームワークであるExpressjsに**インス
## 👀 例
以下に一般的な例をいくつか示します。他のコード例をご覧になりたい場合は、 [Recipesリポジトリ](https://github.com/gofiber/recipes)または[APIドキュメント](https://fiber.wiki)にアクセスしてください。
以下に一般的な例をいくつか示します。他のコード例をご覧になりたい場合は、 [Recipesリポジトリ](https://github.com/gofiber/recipes)または[APIドキュメント](https://docs.gofiber.io)にアクセスしてください。
### Routing
📖 https://fiber.wiki/#basic-routing
📖 https://docs.gofiber.io/#basic-routing
```go
@ -174,7 +171,7 @@ func main() {
### Serve static files
📖 https://fiber.wiki/application#static
📖 https://docs.gofiber.io/application#static
```go
func main() {
@ -197,8 +194,8 @@ func main() {
### Middleware & Next
📖 https://fiber.wiki/routing#middleware
📖 https://fiber.wiki/context#next
📖 https://docs.gofiber.io/routing#middleware
📖 https://docs.gofiber.io/context#next
```go
func main() {
@ -231,15 +228,15 @@ func main() {
### Template engines
📖 https://fiber.wiki/application#settings
📖 https://fiber.wiki/context#render
📖 https://fiber.wiki/middleware#template
📖 https://docs.gofiber.io/application#settings
📖 https://docs.gofiber.io/context#render
📖 https://docs.gofiber.io/middleware#template
Fiber supports the default [Go template engine](https://golang.org/pkg/html/template/)
But if you want to use another template engine like [amber](https://github.com/eknkc/amber), [handlebars](https://github.com/aymerick/raymond), [mustache](https://github.com/cbroglie/mustache) or [pug](https://github.com/Joker/jade).
You can use our [Template Middleware](https://fiber.wiki/middleware#template).
You can use our [Template Middleware](https://docs.gofiber.io/middleware#template).
```go
package main
@ -276,7 +273,7 @@ func main() {
### Grouping routes into chains
📖 https://fiber.wiki/application#group
📖 https://docs.gofiber.io/application#group
```go
func main() {
@ -301,7 +298,7 @@ func main() {
### Middleware logger
📖 https://fiber.wiki/middleware#logger
📖 https://docs.gofiber.io/middleware#logger
```go
import (
@ -327,7 +324,7 @@ func main() {
### Cross-Origin Resource Sharing (CORS)
📖 https://fiber.wiki/middleware#cors
📖 https://docs.gofiber.io/middleware#cors
```go
import (
@ -353,7 +350,7 @@ curl -H "Origin: http://example.com" --verbose http://localhost:3000
### Custom 404 response
📖 https://fiber.wiki/application#http-methods
📖 https://docs.gofiber.io/application#http-methods
```go
func main() {
@ -381,7 +378,7 @@ func main() {
### JSON Response
📖 https://fiber.wiki/context#json
📖 https://docs.gofiber.io/context#json
```go
type User struct {
@ -411,7 +408,7 @@ func main() {
### WebSocket Upgrade
📖 https://fiber.wiki/middleware#websocket
📖 https://docs.gofiber.io/middleware#websocket
```go
import (
@ -445,7 +442,7 @@ func main() {
### Recover middleware
📖 https://fiber.wiki/middleware#recover
📖 https://docs.gofiber.io/middleware#recover
```go
import (
@ -487,7 +484,7 @@ func main() {
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)プロジェクトについてツイートしてください。
3. [Medium](https://medium.com/) 、 [Dev.to、](https://dev.to/)または個人のブログでレビューまたはチュートリアルを書いてください。
4. この`README`と[APIドキュメント](https://fiber.wiki/)を別の言語に翻訳するためにご協力ください。
4. この`README`と[APIドキュメント](https://docs.gofiber.io/)を別の言語に翻訳するためにご協力ください。
<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>
@ -495,6 +492,30 @@ func main() {
<table>
<tr>
<td align="center">
<a href="https://github.com/thomasvvugt">
<img src="https://avatars2.githubusercontent.com/u/56607882?s=460&v=4" width="100px"></br>
<sub><b>Thomas van Vugt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/melkorm">
<img src="https://avatars2.githubusercontent.com/u/619996?s=460&v=4" width="100px"></br>
<sub><b>melkorm</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ekaputra07">
<img src="https://avatars3.githubusercontent.com/u/1094221?s=460&v=4" width="100px"></br>
<sub><b>Eka Putra</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/bihe">
<img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="100px"></br>
@ -537,12 +558,6 @@ func main() {
<sub><b>ekaputra07</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
</tr>
</table>

93
.github/README_ko.md vendored
View File

@ -1,5 +1,5 @@
<p align="center">
<a href="https://fiber.wiki">
<a href="https://gofiber.io">
<img alt="Fiber" height="125" src="https://github.com/gofiber/docs/blob/master/static/fiber_v2_logo.svg">
</a>
<br>
@ -24,9 +24,6 @@
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_de.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/de.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_nl.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/nl.svg">
</a>
<!--<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ko.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ko.svg">
</a>-->
@ -46,7 +43,7 @@
<a href="https://github.com/gofiber/fiber/releases">
<img src="https://img.shields.io/github/release/gofiber/fiber?style=flat-square">
</a>
<a href="https://fiber.wiki">
<a href="https://docs.gofiber.io">
<img src="https://img.shields.io/badge/api-docs-blue?style=flat-square">
</a>
<a href="#">
@ -105,7 +102,7 @@ go get -u github.com/gofiber/fiber/...
## 🤖 벤치마크
이 테스트들은 [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks)와 [Go Web](https://github.com/smallnest/go-web-framework-benchmark)을 통해 측정되었습니다. 만약 모든 결과를 보고 싶다면, [Wiki](https://fiber.wiki/benchmarks)를 확인해 주세요.
이 테스트들은 [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks)와 [Go Web](https://github.com/smallnest/go-web-framework-benchmark)을 통해 측정되었습니다. 만약 모든 결과를 보고 싶다면, [Wiki](https://docs.gofiber.io/benchmarks)를 확인해 주세요.
<p float="left" align="middle">
<img src="https://github.com/gofiber/docs/blob/master/.gitbook/assets//benchmark-pipeline.png" width="49%">
@ -114,18 +111,18 @@ go get -u github.com/gofiber/fiber/...
## 🎯 특징
- 견고한 [라우팅](https://fiber.wiki/routing)
- [정적 파일](https://fiber.wiki/application#static) 제공
- 뛰어난 [성능](https://fiber.wiki/benchmarks)
- [적은 메모리](https://fiber.wiki/benchmarks) 공간
- [API 엔드포인트](https://fiber.wiki/context)
- 미들웨어 & [Next](https://fiber.wiki/context#next) 지원
- 견고한 [라우팅](https://docs.gofiber.io/routing)
- [정적 파일](https://docs.gofiber.io/application#static) 제공
- 뛰어난 [성능](https://docs.gofiber.io/benchmarks)
- [적은 메모리](https://docs.gofiber.io/benchmarks) 공간
- [API 엔드포인트](https://docs.gofiber.io/context)
- 미들웨어 & [Next](https://docs.gofiber.io/context#next) 지원
- [빠른](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) 서버 사이드 프로그래밍
- [Template engines](https://fiber.wiki/middleware#template)
- [WebSocket support](https://fiber.wiki/middleware#websocket)
- [Rate Limiter](https://fiber.wiki/middleware#limiter)
- Available in [11 languages](https://fiber.wiki/)
- 더 알고 싶다면, [Fiber 둘러보기](https://fiber.wiki/)
- [Template engines](https://docs.gofiber.io/middleware#template)
- [WebSocket support](https://docs.gofiber.io/middleware#websocket)
- [Rate Limiter](https://docs.gofiber.io/middleware#limiter)
- Available in [10 languages](https://docs.gofiber.io/)
- 더 알고 싶다면, [Fiber 둘러보기](https://docs.gofiber.io/)
## 💡 철학
@ -139,11 +136,11 @@ Fiber는 인터넷에서 가장 인기있는 웹 프레임워크인 Express에
다음은 일반적인 예제들 입니다.
> 더 많은 코드 예제를 보고 싶다면, [Recipes 저장소](https://github.com/gofiber/recipes) 또는 [API 문서](https://fiber.wiki)를 방문하세요.
> 더 많은 코드 예제를 보고 싶다면, [Recipes 저장소](https://github.com/gofiber/recipes) 또는 [API 문서](https://docs.gofiber.io)를 방문하세요.
### Routing
📖 https://fiber.wiki/#basic-routing
📖 https://docs.gofiber.io/#basic-routing
```go
@ -174,7 +171,7 @@ func main() {
### Serve static files
📖 https://fiber.wiki/application#static
📖 https://docs.gofiber.io/application#static
```go
func main() {
@ -197,8 +194,8 @@ func main() {
### Middleware & Next
📖 https://fiber.wiki/routing#middleware
📖 https://fiber.wiki/context#next
📖 https://docs.gofiber.io/routing#middleware
📖 https://docs.gofiber.io/context#next
```go
func main() {
@ -231,15 +228,15 @@ func main() {
### Template engines
📖 https://fiber.wiki/application#settings
📖 https://fiber.wiki/context#render
📖 https://fiber.wiki/middleware#template
📖 https://docs.gofiber.io/application#settings
📖 https://docs.gofiber.io/context#render
📖 https://docs.gofiber.io/middleware#template
Fiber supports the default [Go template engine](https://golang.org/pkg/html/template/)
But if you want to use another template engine like [amber](https://github.com/eknkc/amber), [handlebars](https://github.com/aymerick/raymond), [mustache](https://github.com/cbroglie/mustache) or [pug](https://github.com/Joker/jade).
You can use our [Template Middleware](https://fiber.wiki/middleware#template).
You can use our [Template Middleware](https://docs.gofiber.io/middleware#template).
```go
package main
@ -276,7 +273,7 @@ func main() {
### Grouping routes into chains
📖 https://fiber.wiki/application#group
📖 https://docs.gofiber.io/application#group
```go
func main() {
@ -301,7 +298,7 @@ func main() {
### Middleware logger
📖 https://fiber.wiki/middleware#logger
📖 https://docs.gofiber.io/middleware#logger
```go
import (
@ -327,7 +324,7 @@ func main() {
### Cross-Origin Resource Sharing (CORS)
📖 https://fiber.wiki/middleware#cors
📖 https://docs.gofiber.io/middleware#cors
```go
import (
@ -353,7 +350,7 @@ curl -H "Origin: http://example.com" --verbose http://localhost:3000
### Custom 404 response
📖 https://fiber.wiki/application#http-methods
📖 https://docs.gofiber.io/application#http-methods
```go
func main() {
@ -381,7 +378,7 @@ func main() {
### JSON Response
📖 https://fiber.wiki/context#json
📖 https://docs.gofiber.io/context#json
```go
type User struct {
@ -411,7 +408,7 @@ func main() {
### WebSocket Upgrade
📖 https://fiber.wiki/middleware#websocket
📖 https://docs.gofiber.io/middleware#websocket
```go
import (
@ -445,7 +442,7 @@ func main() {
### Recover middleware
📖 https://fiber.wiki/middleware#recover
📖 https://docs.gofiber.io/middleware#recover
```go
import (
@ -493,6 +490,30 @@ func main() {
<table>
<tr>
<td align="center">
<a href="https://github.com/thomasvvugt">
<img src="https://avatars2.githubusercontent.com/u/56607882?s=460&v=4" width="100px"></br>
<sub><b>Thomas van Vugt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/melkorm">
<img src="https://avatars2.githubusercontent.com/u/619996?s=460&v=4" width="100px"></br>
<sub><b>melkorm</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ekaputra07">
<img src="https://avatars3.githubusercontent.com/u/1094221?s=460&v=4" width="100px"></br>
<sub><b>Eka Putra</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/bihe">
<img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="100px"></br>
@ -535,12 +556,6 @@ func main() {
<sub><b>ekaputra07</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
</tr>
</table>

95
.github/README_pt.md vendored
View File

@ -1,5 +1,5 @@
<p align="center">
<a href="https://fiber.wiki">
<a href="https://gofiber.io">
<img alt="Fiber" height="125" src="https://github.com/gofiber/docs/blob/master/static/fiber_v2_logo.svg">
</a>
<br>
@ -24,9 +24,6 @@
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_de.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/de.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_nl.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/nl.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ko.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ko.svg">
</a>
@ -46,7 +43,7 @@
<a href="https://github.com/gofiber/fiber/releases">
<img src="https://img.shields.io/github/release/gofiber/fiber?style=flat-square">
</a>
<a href="https://fiber.wiki">
<a href="https://docs.gofiber.io">
<img src="https://img.shields.io/badge/api-docs-blue?style=flat-square">
</a>
<a href="#">
@ -105,7 +102,7 @@ go get -u github.com/gofiber/fiber/...
## 🤖 Benchmarks
Esses testes são realizados pelo [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) e [Go Web](https://github.com/smallnest/go-web-framework-benchmark). Se você quiser ver todos os resultados, visite nosso [Wiki](https://fiber.wiki/benchmarks) .
Esses testes são realizados pelo [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) e [Go Web](https://github.com/smallnest/go-web-framework-benchmark). Se você quiser ver todos os resultados, visite nosso [Wiki](https://docs.gofiber.io/benchmarks) .
<p float="left" align="middle">
<img src="https://github.com/gofiber/docs/blob/master/.gitbook/assets//benchmark-pipeline.png" width="49%">
@ -114,18 +111,18 @@ Esses testes são realizados pelo [TechEmpower](https://github.com/TechEmpower/F
## 🎯 Recursos
- [Roteamento](https://fiber.wiki/routing) robusto
- Servir [arquivos estáticos](https://fiber.wiki/application#static)
- [Desempenho](https://fiber.wiki/benchmarks) extremo
- [Baixo consumo de memória](https://fiber.wiki/benchmarks)
- [API de rotas](https://fiber.wiki/context)
- Suporte para Middleware e [Next](https://fiber.wiki/context#next)
- [Roteamento](https://docs.gofiber.io/routing) robusto
- Servir [arquivos estáticos](https://docs.gofiber.io/application#static)
- [Desempenho](https://docs.gofiber.io/benchmarks) extremo
- [Baixo consumo de memória](https://docs.gofiber.io/benchmarks)
- [API de rotas](https://docs.gofiber.io/context)
- Suporte para Middleware e [Next](https://docs.gofiber.io/context#next)
- Programação [rápida](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) de aplicações de servidor
- [Template engines](https://fiber.wiki/middleware#template)
- [WebSocket support](https://fiber.wiki/middleware#websocket)
- [Rate Limiter](https://fiber.wiki/middleware#limiter)
- Available in [11 languages](https://fiber.wiki/)
- E muito mais, [explore o Fiber](https://fiber.wiki/)
- [Template engines](https://docs.gofiber.io/middleware#template)
- [WebSocket support](https://docs.gofiber.io/middleware#websocket)
- [Rate Limiter](https://docs.gofiber.io/middleware#limiter)
- Available in [10 languages](https://docs.gofiber.io/)
- E muito mais, [explore o Fiber](https://docs.gofiber.io/)
## 💡 Filosofia
@ -135,11 +132,11 @@ O Fiber é **inspirado** no Express, o framework web mais popular da Internet. C
## 👀 Exemplos
Listados abaixo estão alguns exemplos comuns. Se você quiser ver mais exemplos de código, visite nosso [repositório de receitas](https://github.com/gofiber/recipes) ou a [documentação da API](https://fiber.wiki).
Listados abaixo estão alguns exemplos comuns. Se você quiser ver mais exemplos de código, visite nosso [repositório de receitas](https://github.com/gofiber/recipes) ou a [documentação da API](https://docs.gofiber.io).
### Routing
📖 https://fiber.wiki/#basic-routing
📖 https://docs.gofiber.io/#basic-routing
```go
@ -170,7 +167,7 @@ func main() {
### Serve static files
📖 https://fiber.wiki/application#static
📖 https://docs.gofiber.io/application#static
```go
func main() {
@ -193,8 +190,8 @@ func main() {
### Middleware & Next
📖 https://fiber.wiki/routing#middleware
📖 https://fiber.wiki/context#next
📖 https://docs.gofiber.io/routing#middleware
📖 https://docs.gofiber.io/context#next
```go
func main() {
@ -227,15 +224,15 @@ func main() {
### Template engines
📖 https://fiber.wiki/application#settings
📖 https://fiber.wiki/context#render
📖 https://fiber.wiki/middleware#template
📖 https://docs.gofiber.io/application#settings
📖 https://docs.gofiber.io/context#render
📖 https://docs.gofiber.io/middleware#template
Fiber supports the default [Go template engine](https://golang.org/pkg/html/template/)
But if you want to use another template engine like [amber](https://github.com/eknkc/amber), [handlebars](https://github.com/aymerick/raymond), [mustache](https://github.com/cbroglie/mustache) or [pug](https://github.com/Joker/jade).
You can use our [Template Middleware](https://fiber.wiki/middleware#template).
You can use our [Template Middleware](https://docs.gofiber.io/middleware#template).
```go
package main
@ -272,7 +269,7 @@ func main() {
### Grouping routes into chains
📖 https://fiber.wiki/application#group
📖 https://docs.gofiber.io/application#group
```go
func main() {
@ -297,7 +294,7 @@ func main() {
### Middleware logger
📖 https://fiber.wiki/middleware#logger
📖 https://docs.gofiber.io/middleware#logger
```go
import (
@ -323,7 +320,7 @@ func main() {
### Cross-Origin Resource Sharing (CORS)
📖 https://fiber.wiki/middleware#cors
📖 https://docs.gofiber.io/middleware#cors
```go
import (
@ -349,7 +346,7 @@ curl -H "Origin: http://example.com" --verbose http://localhost:3000
### Custom 404 response
📖 https://fiber.wiki/application#http-methods
📖 https://docs.gofiber.io/application#http-methods
```go
func main() {
@ -377,7 +374,7 @@ func main() {
### JSON Response
📖 https://fiber.wiki/context#json
📖 https://docs.gofiber.io/context#json
```go
type User struct {
@ -407,7 +404,7 @@ func main() {
### WebSocket Upgrade
📖 https://fiber.wiki/middleware#websocket
📖 https://docs.gofiber.io/middleware#websocket
```go
import (
@ -441,7 +438,7 @@ func main() {
### Recover middleware
📖 https://fiber.wiki/middleware#recover
📖 https://docs.gofiber.io/middleware#recover
```go
import (
@ -483,12 +480,36 @@ Se você quer **agradecer** e/ou apoiar o desenvolvimento ativo do `Fiber`:
1. Deixe uma [estrela no GitHub](https://github.com/gofiber/fiber/stargazers) do projeto.
2. Tweet sobre o projeto [no seu 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) .
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://docs.gofiber.io/) para outros idiomas.
## ☕ Coffee Supporters
<table>
<tr>
<td align="center">
<a href="https://github.com/thomasvvugt">
<img src="https://avatars2.githubusercontent.com/u/56607882?s=460&v=4" width="100px"></br>
<sub><b>Thomas van Vugt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/melkorm">
<img src="https://avatars2.githubusercontent.com/u/619996?s=460&v=4" width="100px"></br>
<sub><b>melkorm</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ekaputra07">
<img src="https://avatars3.githubusercontent.com/u/1094221?s=460&v=4" width="100px"></br>
<sub><b>Eka Putra</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/bihe">
<img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="100px"></br>
@ -531,12 +552,6 @@ Se você quer **agradecer** e/ou apoiar o desenvolvimento ativo do `Fiber`:
<sub><b>ekaputra07</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
</tr>
</table>

97
.github/README_ru.md vendored
View File

@ -1,5 +1,5 @@
<p align="center">
<a href="https://fiber.wiki">
<a href="https://gofiber.io">
<img alt="Fiber" height="125" src="https://github.com/gofiber/docs/blob/master/static/fiber_v2_logo.svg">
</a>
<br>
@ -24,9 +24,6 @@
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_de.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/de.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_nl.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/nl.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ko.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ko.svg">
</a>
@ -46,7 +43,7 @@
<a href="https://github.com/gofiber/fiber/releases">
<img src="https://img.shields.io/github/release/gofiber/fiber?style=flat-square">
</a>
<a href="https://fiber.wiki">
<a href="https://docs.gofiber.io">
<img src="https://img.shields.io/badge/api-docs-blue?style=flat-square">
</a>
<a href="#">
@ -105,7 +102,7 @@ go get -u github.com/gofiber/fiber
## 🤖 Бенчмарки
Тестирование проводилось с помощью [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) и [Go Web](https://github.com/smallnest/go-web-framework-benchmark). Если вы хотите увидеть все результаты, пожалуйста, посетите наш [Wiki](https://fiber.wiki/benchmarks).
Тестирование проводилось с помощью [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) и [Go Web](https://github.com/smallnest/go-web-framework-benchmark). Если вы хотите увидеть все результаты, пожалуйста, посетите наш [Wiki](https://docs.gofiber.io/benchmarks).
<p float="left" align="middle">
<img src="https://github.com/gofiber/docs/blob/master/.gitbook/assets//benchmark-pipeline.png" width="49%">
@ -114,18 +111,18 @@ go get -u github.com/gofiber/fiber
## 🎯 Особенности
- Надежная [маршрутизация](https://fiber.wiki/routing)
- Доступ к [статичным файлам](https://fiber.wiki/application#static)
- Экстремальная [производительность](https://fiber.wiki/benchmarks)
- [Низкий объем потребления памяти](https://fiber.wiki/benchmarks)
- [Эндпоинты](https://fiber.wiki/context), как в [API](https://fiber.wiki/context) Express
- [Middleware](https://fiber.wiki/middleware) и поддержка [Next](https://fiber.wiki/context#next)
- Надежная [маршрутизация](https://docs.gofiber.io/routing)
- Доступ к [статичным файлам](https://docs.gofiber.io/application#static)
- Экстремальная [производительность](https://docs.gofiber.io/benchmarks)
- [Низкий объем потребления памяти](https://docs.gofiber.io/benchmarks)
- [Эндпоинты](https://docs.gofiber.io/context), как в [API](https://docs.gofiber.io/context) Express
- [Middleware](https://docs.gofiber.io/middleware) и поддержка [Next](https://docs.gofiber.io/context#next)
- [Быстрое](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) программирование на стороне сервера
- [Template engines](https://fiber.wiki/middleware#template)
- [WebSocket support](https://fiber.wiki/middleware#websocket)
- [Rate Limiter](https://fiber.wiki/middleware#limiter)
- Available in [11 languages](https://fiber.wiki/)
- И многое другое, [посетите наш Wiki](https://fiber.wiki/)
- [Template engines](https://docs.gofiber.io/middleware#template)
- [WebSocket support](https://docs.gofiber.io/middleware#websocket)
- [Rate Limiter](https://docs.gofiber.io/middleware#limiter)
- Available in [10 languages](https://docs.gofiber.io/)
- И многое другое, [посетите наш Wiki](https://docs.gofiber.io/)
## 💡 Философия
@ -137,11 +134,11 @@ Fiber **вдохновлен** Express, самым популярным веб
## 👀 Примеры
Ниже перечислены некоторые из распространенных примеров. Если вы хотите увидеть больше примеров кода, пожалуйста, посетите наш [репозиторий рецептов](https://github.com/gofiber/recipes) или [документацию по API](https://fiber.wiki).
Ниже перечислены некоторые из распространенных примеров. Если вы хотите увидеть больше примеров кода, пожалуйста, посетите наш [репозиторий рецептов](https://github.com/gofiber/recipes) или [документацию по API](https://docs.gofiber.io).
### Routing
📖 https://fiber.wiki/#basic-routing
📖 https://docs.gofiber.io/#basic-routing
```go
@ -172,7 +169,7 @@ func main() {
### Serve static files
📖 https://fiber.wiki/application#static
📖 https://docs.gofiber.io/application#static
```go
func main() {
@ -195,8 +192,8 @@ func main() {
### Middleware & Next
📖 https://fiber.wiki/routing#middleware
📖 https://fiber.wiki/context#next
📖 https://docs.gofiber.io/routing#middleware
📖 https://docs.gofiber.io/context#next
```go
func main() {
@ -229,15 +226,15 @@ func main() {
### Template engines
📖 https://fiber.wiki/application#settings
📖 https://fiber.wiki/context#render
📖 https://fiber.wiki/middleware#template
📖 https://docs.gofiber.io/application#settings
📖 https://docs.gofiber.io/context#render
📖 https://docs.gofiber.io/middleware#template
Fiber supports the default [Go template engine](https://golang.org/pkg/html/template/)
But if you want to use another template engine like [amber](https://github.com/eknkc/amber), [handlebars](https://github.com/aymerick/raymond), [mustache](https://github.com/cbroglie/mustache) or [pug](https://github.com/Joker/jade).
You can use our [Template Middleware](https://fiber.wiki/middleware#template).
You can use our [Template Middleware](https://docs.gofiber.io/middleware#template).
```go
package main
@ -274,7 +271,7 @@ func main() {
### Grouping routes into chains
📖 https://fiber.wiki/application#group
📖 https://docs.gofiber.io/application#group
```go
func main() {
@ -299,7 +296,7 @@ func main() {
### Middleware logger
📖 https://fiber.wiki/middleware#logger
📖 https://docs.gofiber.io/middleware#logger
```go
import (
@ -325,7 +322,7 @@ func main() {
### Cross-Origin Resource Sharing (CORS)
📖 https://fiber.wiki/middleware#cors
📖 https://docs.gofiber.io/middleware#cors
```go
import (
@ -351,7 +348,7 @@ curl -H "Origin: http://example.com" --verbose http://localhost:3000
### Custom 404 response
📖 https://fiber.wiki/application#http-methods
📖 https://docs.gofiber.io/application#http-methods
```go
func main() {
@ -379,7 +376,7 @@ func main() {
### JSON Response
📖 https://fiber.wiki/context#json
📖 https://docs.gofiber.io/context#json
```go
type User struct {
@ -409,7 +406,7 @@ func main() {
### WebSocket Upgrade
📖 https://fiber.wiki/middleware#websocket
📖 https://docs.gofiber.io/middleware#websocket
```go
import (
@ -443,7 +440,7 @@ func main() {
### Recover middleware
📖 https://fiber.wiki/middleware#recover
📖 https://docs.gofiber.io/middleware#recover
```go
import (
@ -472,7 +469,7 @@ func main() {
## 🧬 Доступные Middleware
Для более простой и прозрачной работы, мы вынесли [middleware](https://fiber.wiki/middleware) в отдельные репозитории:
Для более простой и прозрачной работы, мы вынесли [middleware](https://docs.gofiber.io/middleware) в отдельные репозитории:
- [Basic Authentication](https://github.com/gofiber/basicauth)
- [Key Authentication](https://github.com/gofiber/keyauth)
@ -504,12 +501,36 @@ func main() {
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).
3. Сделайте обзор фреймворка на [Medium](https://medium.com/), [Dev.to](https://dev.to/) или в личном блоге.
4. Помогите нам перевести `README` и [API](https://fiber.wiki/) на другой язык.
4. Помогите нам перевести `README` и [API](https://docs.gofiber.io/) на другой язык.
## ☕ Кто поддержал проект, купив авторам кофе
<table>
<tr>
<td align="center">
<a href="https://github.com/thomasvvugt">
<img src="https://avatars2.githubusercontent.com/u/56607882?s=460&v=4" width="100px"></br>
<sub><b>Thomas van Vugt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/melkorm">
<img src="https://avatars2.githubusercontent.com/u/619996?s=460&v=4" width="100px"></br>
<sub><b>melkorm</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ekaputra07">
<img src="https://avatars3.githubusercontent.com/u/1094221?s=460&v=4" width="100px"></br>
<sub><b>Eka Putra</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/bihe">
<img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="100px"></br>
@ -552,12 +573,6 @@ func main() {
<sub><b>ekaputra07</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
</tr>
</table>

93
.github/README_tr.md vendored
View File

@ -1,5 +1,5 @@
<p align="center">
<a href="https://fiber.wiki">
<a href="https://gofiber.io">
<img alt="Fiber" height="125" src="https://github.com/gofiber/docs/blob/master/static/fiber_v2_logo.svg">
</a>
<br>
@ -24,9 +24,6 @@
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_de.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/de.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_nl.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/nl.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ko.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ko.svg">
</a>
@ -46,7 +43,7 @@
<a href="https://github.com/gofiber/fiber/releases">
<img src="https://img.shields.io/github/release/gofiber/fiber?style=flat-square">
</a>
<a href="https://fiber.wiki">
<a href="https://docs.gofiber.io">
<img src="https://img.shields.io/badge/api-docs-blue?style=flat-square">
</a>
<a href="#">
@ -105,7 +102,7 @@ go get -u github.com/gofiber/fiber/...
## 🤖 Performans Ölçümleri
Bu testler [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) ve [Go Web](https://github.com/smallnest/go-web-framework-benchmark) ile koşuldu. Bütün sonuçları görmek için lütfen [Wiki](https://fiber.wiki/benchmarks) sayfasını ziyaret ediniz.
Bu testler [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) ve [Go Web](https://github.com/smallnest/go-web-framework-benchmark) ile koşuldu. Bütün sonuçları görmek için lütfen [Wiki](https://docs.gofiber.io/benchmarks) sayfasını ziyaret ediniz.
<p float="left" align="middle">
<img src="https://github.com/gofiber/docs/blob/master/.gitbook/assets//benchmark-pipeline.png" width="49%">
@ -114,18 +111,18 @@ Bu testler [TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks) ve
## 🎯 Özellikler
- Güçlü [rotalar](https://fiber.wiki/routing)
- [Statik dosya](https://fiber.wiki/application#static) yönetimi
- Olağanüstü [performans](https://fiber.wiki/benchmarks)
- [Düşük bellek](https://fiber.wiki/benchmarks) tüketimi
- [API uç noktaları](https://fiber.wiki/context)
- Ara katman & [Sonraki](https://fiber.wiki/context#next) desteği
- Güçlü [rotalar](https://docs.gofiber.io/routing)
- [Statik dosya](https://docs.gofiber.io/application#static) yönetimi
- Olağanüstü [performans](https://docs.gofiber.io/benchmarks)
- [Düşük bellek](https://docs.gofiber.io/benchmarks) tüketimi
- [API uç noktaları](https://docs.gofiber.io/context)
- Ara katman & [Sonraki](https://docs.gofiber.io/context#next) desteği
- [Hızlı](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497) sunucu taraflı programlama
- [Template engines](https://fiber.wiki/middleware#template)
- [WebSocket support](https://fiber.wiki/middleware#websocket)
- [Rate Limiter](https://fiber.wiki/middleware#limiter)
- Available in [11 languages](https://fiber.wiki/)
- Ve daha fazlası, [Fiber ı keşfet](https://fiber.wiki/)
- [Template engines](https://docs.gofiber.io/middleware#template)
- [WebSocket support](https://docs.gofiber.io/middleware#websocket)
- [Rate Limiter](https://docs.gofiber.io/middleware#limiter)
- Available in [10 languages](https://docs.gofiber.io/)
- Ve daha fazlası, [Fiber ı keşfet](https://docs.gofiber.io/)
## 💡 Felsefe
@ -135,11 +132,11 @@ Fiber internet üzerinde en popüler olan Express web çatısından **esinlenmi
## 👀 Örnekler
Aşağıda yaygın örneklerden bazıları listelenmiştir. Daha fazla kod örneği görmek için, lütfen [Kod depomuzu](https://github.com/gofiber/recipes) veya [API dökümantasyonunu](https://fiber.wiki) ziyaret ediniz.
Aşağıda yaygın örneklerden bazıları listelenmiştir. Daha fazla kod örneği görmek için, lütfen [Kod depomuzu](https://github.com/gofiber/recipes) veya [API dökümantasyonunu](https://docs.gofiber.io) ziyaret ediniz.
### Routing
📖 https://fiber.wiki/#basic-routing
📖 https://docs.gofiber.io/#basic-routing
```go
@ -170,7 +167,7 @@ func main() {
### Serve static files
📖 https://fiber.wiki/application#static
📖 https://docs.gofiber.io/application#static
```go
func main() {
@ -193,8 +190,8 @@ func main() {
### Middleware & Next
📖 https://fiber.wiki/routing#middleware
📖 https://fiber.wiki/context#next
📖 https://docs.gofiber.io/routing#middleware
📖 https://docs.gofiber.io/context#next
```go
func main() {
@ -227,15 +224,15 @@ func main() {
### Template engines
📖 https://fiber.wiki/application#settings
📖 https://fiber.wiki/context#render
📖 https://fiber.wiki/middleware#template
📖 https://docs.gofiber.io/application#settings
📖 https://docs.gofiber.io/context#render
📖 https://docs.gofiber.io/middleware#template
Fiber supports the default [Go template engine](https://golang.org/pkg/html/template/)
But if you want to use another template engine like [amber](https://github.com/eknkc/amber), [handlebars](https://github.com/aymerick/raymond), [mustache](https://github.com/cbroglie/mustache) or [pug](https://github.com/Joker/jade).
You can use our [Template Middleware](https://fiber.wiki/middleware#template).
You can use our [Template Middleware](https://docs.gofiber.io/middleware#template).
```go
package main
@ -272,7 +269,7 @@ func main() {
### Grouping routes into chains
📖 https://fiber.wiki/application#group
📖 https://docs.gofiber.io/application#group
```go
func main() {
@ -297,7 +294,7 @@ func main() {
### Middleware logger
📖 https://fiber.wiki/middleware#logger
📖 https://docs.gofiber.io/middleware#logger
```go
import (
@ -323,7 +320,7 @@ func main() {
### Cross-Origin Resource Sharing (CORS)
📖 https://fiber.wiki/middleware#cors
📖 https://docs.gofiber.io/middleware#cors
```go
import (
@ -349,7 +346,7 @@ curl -H "Origin: http://example.com" --verbose http://localhost:3000
### Custom 404 response
📖 https://fiber.wiki/application#http-methods
📖 https://docs.gofiber.io/application#http-methods
```go
func main() {
@ -377,7 +374,7 @@ func main() {
### JSON Response
📖 https://fiber.wiki/context#json
📖 https://docs.gofiber.io/context#json
```go
type User struct {
@ -407,7 +404,7 @@ func main() {
### WebSocket Upgrade
📖 https://fiber.wiki/middleware#websocket
📖 https://docs.gofiber.io/middleware#websocket
```go
import (
@ -441,7 +438,7 @@ func main() {
### Recover middleware
📖 https://fiber.wiki/middleware#recover
📖 https://docs.gofiber.io/middleware#recover
```go
import (
@ -490,6 +487,30 @@ Eğer **teşekkür etmek** ve/veya `Fiber` ın aktif geliştirilmesini destekle
<table>
<tr>
<td align="center">
<a href="https://github.com/thomasvvugt">
<img src="https://avatars2.githubusercontent.com/u/56607882?s=460&v=4" width="100px"></br>
<sub><b>Thomas van Vugt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/melkorm">
<img src="https://avatars2.githubusercontent.com/u/619996?s=460&v=4" width="100px"></br>
<sub><b>melkorm</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ekaputra07">
<img src="https://avatars3.githubusercontent.com/u/1094221?s=460&v=4" width="100px"></br>
<sub><b>Eka Putra</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/bihe">
<img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="100px"></br>
@ -532,12 +553,6 @@ Eğer **teşekkür etmek** ve/veya `Fiber` ın aktif geliştirilmesini destekle
<sub><b>ekaputra07</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
</tr>
</table>

View File

@ -1,5 +1,5 @@
<p align="center">
<a href="https://fiber.wiki">
<a href="https://gofiber.io">
<img alt="Fiber" height="125" src="https://github.com/gofiber/docs/blob/master/static/fiber_v2_logo.svg">
</a>
<br>
@ -24,9 +24,6 @@
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_de.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/de.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_nl.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/nl.svg">
</a>
<a href="https://github.com/gofiber/fiber/blob/master/.github/README_ko.md">
<img height="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ko.svg">
</a>
@ -46,7 +43,7 @@
<a href="https://github.com/gofiber/fiber/releases">
<img src="https://img.shields.io/github/release/gofiber/fiber?style=flat-square">
</a>
<a href="https://fiber.wiki">
<a href="https://docs.gofiber.io">
<img src="https://img.shields.io/badge/api-docs-blue?style=flat-square">
</a>
<a href="#">
@ -105,7 +102,7 @@ go get -u github.com/gofiber/fiber
## 🤖 性能
这些测试由[TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks)和[Go Web执行](https://github.com/smallnest/go-web-framework-benchmark) 。如果要查看所有结果,请访问我们的[Wiki](https://fiber.wiki/benchmarks) 。
这些测试由[TechEmpower](https://github.com/TechEmpower/FrameworkBenchmarks)和[Go Web执行](https://github.com/smallnest/go-web-framework-benchmark) 。如果要查看所有结果,请访问我们的[Wiki](https://docs.gofiber.io/benchmarks) 。
<p float="left" align="middle">
<img src="https://github.com/gofiber/docs/blob/master/.gitbook/assets/benchmark-pipeline.png" width="49%">
@ -114,18 +111,18 @@ go get -u github.com/gofiber/fiber
## 🎯 特点
- 强大的[路由](https://fiber.wiki/routing)
- [静态文件](https://fiber.wiki/application#static)服务
- 极限[表现](https://fiber.wiki/benchmarks)
- [内存占用低](https://fiber.wiki/benchmarks)
- Express [API端点](https://fiber.wiki/context)
- 中间件和[Next](https://fiber.wiki/context#next)支持
- 强大的[路由](https://docs.gofiber.io/routing)
- [静态文件](https://docs.gofiber.io/application#static)服务
- 极限[表现](https://docs.gofiber.io/benchmarks)
- [内存占用低](https://docs.gofiber.io/benchmarks)
- Express [API端点](https://docs.gofiber.io/context)
- 中间件和[Next](https://docs.gofiber.io/context#next)支持
- [快速的](https://dev.to/koddr/welcome-to-fiber-an-express-js-styled-fastest-web-framework-written-with-on-golang-497)服务器端编程
- [Template engines](https://fiber.wiki/middleware#template)
- [WebSocket support](https://fiber.wiki/middleware#websocket)
- [Rate Limiter](https://fiber.wiki/middleware#limiter)
- Available in [11 languages](https://fiber.wiki/)
- 以及更多[文档](https://fiber.wiki/)
- [Template engines](https://docs.gofiber.io/middleware#template)
- [WebSocket support](https://docs.gofiber.io/middleware#websocket)
- [Rate Limiter](https://docs.gofiber.io/middleware#limiter)
- Available in [10 languages](https://docs.gofiber.io/)
- 以及更多[文档](https://docs.gofiber.io/)
## 💡 哲学
@ -135,11 +132,11 @@ Fiber **受** Internet上最流行的Web框架Expressjs的**启发** 。我们
## 👀 示例
下面列出了一些常见示例。如果您想查看更多代码示例,请访问我们的[Recipes存储库](https://github.com/gofiber/recipes)或访问我们的[API文档](https://fiber.wiki) 。
下面列出了一些常见示例。如果您想查看更多代码示例,请访问我们的[Recipes存储库](https://github.com/gofiber/recipes)或访问我们的[API文档](https://docs.gofiber.io) 。
### Routing
📖 https://fiber.wiki/#basic-routing
📖 https://docs.gofiber.io/#basic-routing
```go
@ -170,7 +167,7 @@ func main() {
### Serve static files
📖 https://fiber.wiki/application#static
📖 https://docs.gofiber.io/application#static
```go
func main() {
@ -193,8 +190,8 @@ func main() {
### Middleware & Next
📖 https://fiber.wiki/routing#middleware
📖 https://fiber.wiki/context#next
📖 https://docs.gofiber.io/routing#middleware
📖 https://docs.gofiber.io/context#next
```go
func main() {
@ -227,15 +224,15 @@ func main() {
### Template engines
📖 https://fiber.wiki/application#settings
📖 https://fiber.wiki/context#render
📖 https://fiber.wiki/middleware#template
📖 https://docs.gofiber.io/application#settings
📖 https://docs.gofiber.io/context#render
📖 https://docs.gofiber.io/middleware#template
Fiber supports the default [Go template engine](https://golang.org/pkg/html/template/)
But if you want to use another template engine like [amber](https://github.com/eknkc/amber), [handlebars](https://github.com/aymerick/raymond), [mustache](https://github.com/cbroglie/mustache) or [pug](https://github.com/Joker/jade).
You can use our [Template Middleware](https://fiber.wiki/middleware#template).
You can use our [Template Middleware](https://docs.gofiber.io/middleware#template).
```go
package main
@ -272,7 +269,7 @@ func main() {
### Grouping routes into chains
📖 https://fiber.wiki/application#group
📖 https://docs.gofiber.io/application#group
```go
func main() {
@ -297,7 +294,7 @@ func main() {
### Middleware logger
📖 https://fiber.wiki/middleware#logger
📖 https://docs.gofiber.io/middleware#logger
```go
import (
@ -323,7 +320,7 @@ func main() {
### Cross-Origin Resource Sharing (CORS)
📖 https://fiber.wiki/middleware#cors
📖 https://docs.gofiber.io/middleware#cors
```go
import (
@ -349,7 +346,7 @@ curl -H "Origin: http://example.com" --verbose http://localhost:3000
### Custom 404 response
📖 https://fiber.wiki/application#http-methods
📖 https://docs.gofiber.io/application#http-methods
```go
func main() {
@ -377,7 +374,7 @@ func main() {
### JSON Response
📖 https://fiber.wiki/context#json
📖 https://docs.gofiber.io/context#json
```go
type User struct {
@ -407,7 +404,7 @@ func main() {
### WebSocket Upgrade
📖 https://fiber.wiki/middleware#websocket
📖 https://docs.gofiber.io/middleware#websocket
```go
import (
@ -441,7 +438,7 @@ func main() {
### Recover middleware
📖 https://fiber.wiki/middleware#recover
📖 https://docs.gofiber.io/middleware#recover
```go
import (
@ -490,6 +487,30 @@ func main() {
<table>
<tr>
<td align="center">
<a href="https://github.com/thomasvvugt">
<img src="https://avatars2.githubusercontent.com/u/56607882?s=460&v=4" width="100px"></br>
<sub><b>Thomas van Vugt</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/melkorm">
<img src="https://avatars2.githubusercontent.com/u/619996?s=460&v=4" width="100px"></br>
<sub><b>melkorm</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ekaputra07">
<img src="https://avatars3.githubusercontent.com/u/1094221?s=460&v=4" width="100px"></br>
<sub><b>Eka Putra</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/bihe">
<img src="https://avatars1.githubusercontent.com/u/635852?s=460&v=4" width="100px"></br>
@ -532,12 +553,6 @@ func main() {
<sub><b>ekaputra07</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/raymayemir">
<img src="https://avatars2.githubusercontent.com/u/5638101?s=460&v=4" width="100px"></br>
<sub><b>Ray Mayemir</b></sub>
</a>
</td>
</tr>
</table>

View File

@ -1,28 +0,0 @@
name: Go
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: go build -v .

View File

@ -1,10 +1,10 @@
on: [push]
name: Security
on: [push, pull_request]
name: Gosec
jobs:
test:
Security:
strategy:
matrix:
go-version: [1.13.x]
go-version: [1.14.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
@ -15,4 +15,4 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Security
run: go get github.com/securego/gosec/cmd/gosec; `go env GOPATH`/bin/gosec ./...
run: go get github.com/securego/gosec/cmd/gosec; `go env GOPATH`/bin/gosec ./...

21
.github/workflows/testing.yml vendored Normal file
View File

@ -0,0 +1,21 @@
on: [push, pull_request]
name: Test
jobs:
Testing:
strategy:
matrix:
# go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x]
# platform: [ubuntu-latest, windows-latest, macos-latest]
go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x]
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v

View File

@ -1,25 +0,0 @@
language: go
dist: xenial
os:
- linux
- windows
- osx
go:
- 1.11.x
- 1.12.x
- 1.13.x
- 1.14.x
env:
- GO111MODULE=on
script:
- GOOS=linux go build
- GOOS=darwin go build
- GOOS=freebsd go build
- GOOS=windows go build
- GOARCH=386 go build
- go test -v

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2019-present Fenny and Fiber Contributors
Copyright (c) 2019-present Fenny and Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

7
app.go
View File

@ -1,5 +1,5 @@
// 🚀 Fiber is an Express inspired web framework written in Go with 💖
// 📌 API Documentation: https://fiber.wiki
// 📌 API Documentation: https://docs.gofiber.io
// 📝 Github Repository: https://github.com/gofiber/fiber
package fiber
@ -327,6 +327,7 @@ func (grp *Group) All(path string, handlers ...func(*Ctx)) *Group {
// Serve can be used to pass a custom listener
// This method does not support the Prefork feature
// Preforkin is not available using app.Serve(ln net.Listener)
// You can pass an optional *tls.Config to enable TLS.
func (app *App) Serve(ln net.Listener, tlsconfig ...*tls.Config) error {
// Create fasthttp server
@ -335,10 +336,6 @@ func (app *App) Serve(ln net.Listener, tlsconfig ...*tls.Config) error {
if len(tlsconfig) > 0 {
ln = tls.NewListener(ln, tlsconfig[0])
}
// Preforkin is not available using app.Serve(ln net.Listener)
if app.Settings.Prefork {
fmt.Println("Preforking is not available with 'Serve' please use 'Listen' to enable it.")
}
// Print listening message
fmt.Printf("Fiber v%s listening on %s\n", Version, ln.Addr().String())
return app.server.Serve(ln)

View File

@ -1,5 +1,5 @@
// 🚀 Fiber is an Express inspired web framework written in Go with 💖
// 📌 API Documentation: https://fiber.wiki
// 📌 API Documentation: https://docs.gofiber.io
// 📝 Github Repository: https://github.com/gofiber/fiber
// go test -v -coverprofile cover.out .

36
ctx.go
View File

@ -1,11 +1,13 @@
// 🚀 Fiber is an Express inspired web framework written in Go with 💖
// 📌 API Documentation: https://fiber.wiki
// 📌 API Documentation: https://docs.gofiber.io
// 📝 Github Repository: https://github.com/gofiber/fiber
package fiber
import (
"bytes"
"encoding/json"
"encoding/xml"
"fmt"
"html/template"
@ -21,7 +23,6 @@ import (
"time"
schema "github.com/gorilla/schema"
jsoniter "github.com/json-iterator/go"
fasthttp "github.com/valyala/fasthttp"
)
@ -60,7 +61,6 @@ type Cookie struct {
}
// Global variables
var jsonParser = jsoniter.ConfigCompatibleWithStandardLibrary
var schemaDecoderForm = schema.NewDecoder()
var schemaDecoderQuery = schema.NewDecoder()
@ -261,7 +261,7 @@ func (ctx *Ctx) BodyParser(out interface{}) error {
ctype := getString(ctx.Fasthttp.Request.Header.ContentType())
// application/json
if strings.HasPrefix(ctype, MIMEApplicationJSON) {
return jsoniter.Unmarshal(ctx.Fasthttp.Request.Body(), out)
return json.Unmarshal(ctx.Fasthttp.Request.Body(), out)
}
// application/xml text/xml
if strings.HasPrefix(ctype, MIMEApplicationXML) || strings.HasPrefix(ctype, MIMETextXML) {
@ -458,19 +458,15 @@ func (ctx *Ctx) Is(extension string) (match bool) {
// JSON converts any interface or string to JSON using Jsoniter.
// This method also sets the content header to application/json.
func (ctx *Ctx) JSON(json interface{}) error {
// Get stream from pool
stream := jsonParser.BorrowStream(nil)
defer jsonParser.ReturnStream(stream)
// Write struct to stream
stream.WriteVal(&json)
func (ctx *Ctx) JSON(data interface{}) error {
raw, err := json.Marshal(&data)
// Check for errors
if stream.Error != nil {
return stream.Error
if err != nil {
return err
}
// Set http headers
ctx.Fasthttp.Response.Header.SetContentType(MIMEApplicationJSON)
ctx.Fasthttp.Response.SetBodyString(getString(stream.Buffer()))
ctx.Fasthttp.Response.SetBodyString(getString(raw))
// Success!
return nil
}
@ -478,22 +474,18 @@ func (ctx *Ctx) JSON(json interface{}) error {
// JSONP sends a JSON response with JSONP support.
// This method is identical to JSON, except that it opts-in to JSONP callback support.
// By default, the callback name is simply callback.
func (ctx *Ctx) JSONP(json interface{}, callback ...string) error {
// Get stream from pool
stream := jsonParser.BorrowStream(nil)
defer jsonParser.ReturnStream(stream)
// Write struct to stream
stream.WriteVal(&json)
func (ctx *Ctx) JSONP(data interface{}, callback ...string) error {
raw, err := json.Marshal(&data)
// Check for errors
if stream.Error != nil {
return stream.Error
if err != nil {
return err
}
str := "callback("
if len(callback) > 0 {
str = callback[0] + "("
}
str += getString(stream.Buffer()) + ");"
str += getString(raw) + ");"
ctx.Set(HeaderXContentTypeOptions, "nosniff")
ctx.Fasthttp.Response.Header.SetContentType(MIMEApplicationJavaScript)

View File

@ -1,5 +1,5 @@
// 🚀 Fiber is an Express inspired web framework written in Go with 💖
// 📌 API Documentation: https://fiber.wiki
// 📌 API Documentation: https://docs.gofiber.io
// 📝 Github Repository: https://github.com/gofiber/fiber
package fiber

3
go.mod
View File

@ -4,6 +4,5 @@ go 1.11
require (
github.com/gorilla/schema v1.1.0
github.com/json-iterator/go v1.1.9
github.com/valyala/fasthttp v1.11.0
github.com/valyala/fasthttp v1.12.0
)

25
go.sum
View File

@ -1,27 +1,14 @@
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/gorilla/schema v1.1.0 h1:CamqUDOFUBqzrvxuz2vEwo8+SUdwsluFh7IlzJh30LY=
github.com/gorilla/schema v1.1.0/go.mod h1:kgLaKoK1FELgZqMAVxx/5cbj0kT+57qxUrAlIO2eleU=
github.com/json-iterator/go v1.1.9 h1:9yzud/Ht36ygwatGx56VwCZtlI/2AD15T1X2sjSuGns=
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/klauspost/compress v1.8.2 h1:Bx0qjetmNjdFXASH02NSAREKpiaDwkO1DRZ3dV2KCcs=
github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/cpuid v1.2.1 h1:vJi+O/nMdFt0vqm8NZBI6wzALWdA2X+egi0ogNyrC/w=
github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLDQ0W1YjYsBW+p8U2u7vzgW2SQVmlNazg=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/klauspost/compress v1.10.4 h1:jFzIFaf586tquEB5EhzQG0HwGNSlgAJpG53G6Ss11wc=
github.com/klauspost/compress v1.10.4/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v1.11.0 h1:CpWaRjWmZMkgcngl8P7ygGoHmfXSZDcKx3Vdv8Bdkuw=
github.com/valyala/fasthttp v1.11.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBnvPM1Su9w=
github.com/valyala/fasthttp v1.12.0 h1:TsB9qkSeiMXB40ELWWSRMjlsE+8IkqXHcs01y2d9aw0=
github.com/valyala/fasthttp v1.12.0/go.mod h1:229t1eWu9UXTPmoUkbpN/fctKPBY4IJoFXQnxHGXy6E=
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

View File

@ -1,5 +1,5 @@
// 🚀 Fiber is an Express inspired web framework written in Go with 💖
// 📌 API Documentation: https://fiber.wiki
// 📌 API Documentation: https://docs.gofiber.io
// 📝 Github Repository: https://github.com/gofiber/fiber
package fiber

View File

@ -1,5 +1,5 @@
// 🚀 Fiber is an Express inspired web framework written in Go with 💖
// 📌 API Documentation: https://fiber.wiki
// 📌 API Documentation: https://docs.gofiber.io
// 📝 Github Repository: https://github.com/gofiber/fiber
package fiber