Skip to content

Commit

Permalink
Merge pull request #4 from gofiber/master
Browse files Browse the repository at this point in the history
Accumulative update @ 08 Feb 2020
  • Loading branch information
koddr committed Feb 8, 2020
2 parents 3bff181 + 11538da commit f5303fd
Show file tree
Hide file tree
Showing 16 changed files with 130 additions and 125 deletions.
6 changes: 3 additions & 3 deletions README_CH.md → .github/README_CH.md
@@ -1,4 +1,4 @@
# 🚀 Fiber <a href="README.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/en.svg" alt="en"/></a> <a href="README_RU.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ru.svg" alt="ru"/></a>
# 🚀 Fiber <a href="https://github.com/gofiber/fiber/blob/master/README.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/en.svg" alt="en"/></a> <a href="https://github.com/gofiber/fiber/blob/master/.github/README_RU.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ru.svg" alt="ru"/></a>

[![](https://img.shields.io/github/release/gofiber/fiber)](https://github.com/gofiber/fiber/releases) ![](https://img.shields.io/github/languages/top/gofiber/fiber) [![](https://godoc.org/github.com/gofiber/fiber?status.svg)](https://godoc.org/github.com/gofiber/fiber) ![](https://goreportcard.com/badge/github.com/gofiber/fiber) [![GitHub license](https://img.shields.io/github/license/gofiber/fiber.svg)](https://github.com/gofiber/fiber/blob/master/LICENSE) [![Join the chat at https://gitter.im/gofiber/community](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gofiber/community)

Expand All @@ -14,7 +14,7 @@

## Benchmark

[![](https://fiber.wiki/static/benchmarks/benchmark.png)](https://fiber.wiki/#/benchmarks)
[![](https://github.com/gofiber/docs/blob/master/static/benchmarks/benchmark.png)](https://fiber.wiki/benchmarks)

👉 **[点击这里](https://fiber.wiki/#/benchmarks)** 查看所有基准测试结果.

Expand Down Expand Up @@ -73,7 +73,7 @@ go run server.go

## Static files

要提供静态文件,请使用 [Static](https://fiber.wiki/#/?id=static-files) 方法:
要提供静态文件,请使用 [Static](https://fiber.wiki/application#static) 方法:

```go
package main
Expand Down
20 changes: 10 additions & 10 deletions README_NEW.md → .github/README_NEW.md
@@ -1,6 +1,6 @@
<img height="160px" src="https://github.com/gofiber/docs/blob/master/static/logo_320px_trans.png" alt="Fiber logo" />

# 🚀 Fiber <a href="README_RU.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ru.svg" alt="ru"/></a> <a href="README_CH.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ch.svg" alt="ch"/></a>
# 🚀 Fiber <a href="https://github.com/gofiber/fiber/blob/master/.github/readme_ru.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ru.svg" alt="ru"/></a> <a href="https://github.com/gofiber/fiber/blob/master/.github/readme_ch.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ch.svg" alt="ch"/></a>

[![](https://img.shields.io/github/release/gofiber/fiber)](https://github.com/gofiber/fiber/releases) ![](https://img.shields.io/github/languages/top/gofiber/fiber) [![](https://godoc.org/github.com/gofiber/fiber?status.svg)](https://godoc.org/github.com/gofiber/fiber) ![](https://goreportcard.com/badge/github.com/gofiber/fiber) [![GitHub license](https://img.shields.io/github/license/gofiber/fiber.svg)](https://github.com/gofiber/fiber/blob/master/LICENSE) [![Join the chat at https://gitter.im/gofiber/community](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gofiber/community)

Expand Down Expand Up @@ -41,27 +41,27 @@ go get 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://fiber.wiki/benchmarks).

<p float="left" align="middle">
<img src="https://fiber.wiki/static/benchmarks/benchmark-pipeline.png" width="49%" />
<img src="https://fiber.wiki/static/benchmarks/benchmark_alloc.png" width="49%" />
<img src="https://github.com/gofiber/docs/blob/master/static/benchmarks/benchmark-pipeline.png" width="49%" />
<img src="https://github.com/gofiber/docs/blob/master/static/benchmarks/benchmark_alloc.png" width="49%" />
</p>

## 🎯 Main features

- Robust [routing](https://fiber.wiki/#/routing)
- Serve [static files](https://fiber.wiki/#/application?id=static)
- [Extreme performance](https://fiber.wiki/#/benchmarks)
- Robust [routing](https://fiber.wiki/routing)
- Serve [static files](https://fiber.wiki/application#static)
- [Extreme performance](https://fiber.wiki/benchmarks)
- Low memory footprint
- Express [API endpoints](https://fiber.wiki/#/context)
- Middleware & [Next](https://fiber.wiki/#context?id=next) support
- Express [API endpoints](https://fiber.wiki/context)
- Middleware & [Next](https://fiber.wiki/context#next) support
- Rapid server-side programming
- And much more, [visit our Wiki](https://fiber.wiki/)

## 💡 Philosophy

People switching from [Node.js](https://nodejs.org/en/about/) to [Go](https://golang.org/doc/) often don't understand how to start building their web applications or microservices. Fiber, as a **web framework**, was created with the idea of **minimalism** and follow **UNIX way**, so that newbie gophers can quickly enter the new world of Go, but be in it like home.
People switching from [Node.js](https://nodejs.org/en/about/) to [Go](https://golang.org/doc/) having a heard time on how to start building their web applications or microservices. Fiber, as a **web framework**, was created with the idea of **minimalism** and follow **UNIX way**, so that new gophers can quickly enter the world of Go, but with a warm welcome.

Fiber is **inspired** by the Express framework, the most popular web framework on Internet. We combined the **ease** of Express and **raw performance** of Go. If you have ever implemented a web application on Node.js (_using Express.js or similar_), then many methods and principles will seem **very common** to you.

Expand Down
8 changes: 4 additions & 4 deletions README_RU.md → .github/README_RU.md
@@ -1,4 +1,4 @@
# 🚀 Fiber <a href="README.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/en.svg" alt="en"/></a> <a href="README_CH.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ch.svg" alt="ch"/></a>
# 🚀 Fiber <a href="https://github.com/gofiber/fiber/blob/master/README.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/en.svg" alt="en"/></a> <a href="https://github.com/gofiber/fiber/blob/master/.github/README_CH.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ch.svg" alt="ch"/></a>

[![](https://img.shields.io/github/release/gofiber/fiber)](https://github.com/gofiber/fiber/releases) ![](https://img.shields.io/github/languages/top/gofiber/fiber) [![](https://godoc.org/github.com/gofiber/fiber?status.svg)](https://godoc.org/github.com/gofiber/fiber) ![](https://goreportcard.com/badge/github.com/gofiber/fiber) [![GitHub license](https://img.shields.io/github/license/gofiber/fiber.svg)](https://github.com/gofiber/fiber/blob/master/LICENSE) [![Join the chat at https://gitter.im/gofiber/community](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gofiber/community)

Expand All @@ -14,9 +14,9 @@

## Бенчмарк

[![](https://fiber.wiki/static/benchmarks/benchmark.png)](https://fiber.wiki/#/benchmarks)
[![](https://github.com/gofiber/docs/blob/master/static/benchmarks/benchmark.png)](https://fiber.wiki/benchmarks)

👉 **[Click here](https://fiber.wiki/#/benchmarks)** to see all benchmark results.
👉 **[Click here](https://fiber.wiki/benchmarks)** to see all benchmark results.

## Особенности

Expand Down Expand Up @@ -73,7 +73,7 @@ go run server.go

## Статичные файлы

Для получения доступа к статичным файлам, используйте метод [Static](https://fiber.wiki/#/?id=static-files):
Для получения доступа к статичным файлам, используйте метод [Static](https://fiber.wiki/application#static):

```go
package main
Expand Down
2 changes: 2 additions & 0 deletions .gitpod.yml
@@ -0,0 +1,2 @@
tasks:
- init: go get && go build ./... && go test ./...
11 changes: 6 additions & 5 deletions README.md
@@ -1,6 +1,7 @@
# 🚀 Fiber <a href="README_RU.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ru.svg" alt="ru"/></a> <a href="README_CH.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ch.svg" alt="ch"/></a>

[![](https://img.shields.io/github/release/gofiber/fiber)](https://github.com/gofiber/fiber/releases) ![](https://img.shields.io/github/languages/top/gofiber/fiber) [![](https://godoc.org/github.com/gofiber/fiber?status.svg)](https://godoc.org/github.com/gofiber/fiber) ![](https://goreportcard.com/badge/github.com/gofiber/fiber) [![GitHub license](https://img.shields.io/github/license/gofiber/fiber.svg)](https://github.com/gofiber/fiber/blob/master/LICENSE) [![Join the chat at https://gitter.im/gofiber/community](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gofiber/community)
# 🚀 Fiber <a href="https://github.com/gofiber/fiber/blob/master/.github/README_RU.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ru.svg" alt="ru"/></a> <a href="https://github.com/gofiber/fiber/blob/master/.github/README_CH.md"><img width="20px" src="https://github.com/gofiber/docs/blob/master/static/flags/ch.svg" alt="ch"/></a>

[![](https://img.shields.io/github/release/gofiber/fiber)](https://github.com/gofiber/fiber/releases) ![](https://img.shields.io/github/languages/top/gofiber/fiber) [![](https://godoc.org/github.com/gofiber/fiber?status.svg)](https://godoc.org/github.com/gofiber/fiber) ![](https://goreportcard.com/badge/github.com/gofiber/fiber) [![GitHub license](https://img.shields.io/github/license/gofiber/fiber.svg)](https://github.com/gofiber/fiber/blob/master/LICENSE) [![Join the chat at https://gitter.im/gofiber/community](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gofiber/community) [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/gofiber/fiber)

<img align="right" height="180px" src="https://github.com/gofiber/docs/blob/master/static/logo_320px_trans.png" alt="Fiber logo" />

Expand All @@ -14,9 +15,9 @@ People switching from [Node.js](https://nodejs.org/en/about/) to [Go](https://go

## Benchmark

[![](https://fiber.wiki/static/benchmarks/benchmark.png)](https://fiber.wiki/#/benchmarks)
[![](https://github.com/gofiber/docs/blob/master/static/benchmarks/benchmark.png)](https://fiber.wiki/benchmarks)

👉 **[Click here](https://fiber.wiki/#/benchmarks)** to see all benchmark results.
👉 **[Click here](https://fiber.wiki/benchmarks)** to see all benchmark results.

## Features

Expand Down Expand Up @@ -73,7 +74,7 @@ And now, browse to `http://localhost:8080` and you should see `Hello, World!` on

## Static files

To serve static files, use the [Static](https://fiber.wiki/#/?id=static-files) method:
To serve static files, use the [Static](https://fiber.wiki/application#static) method:

```go
package main
Expand Down
8 changes: 4 additions & 4 deletions application.go
@@ -1,9 +1,9 @@
// 🔌 Fiber is an Express.js inspired web framework build on 🚀 Fasthttp.
// 🚀 Fiber is an Express.js inspired web framework written in Go with 💖
// 📌 Please open an issue if you got suggestions or found a bug!
// 🖥 https://github.com/gofiber/fiber
// 🖥 Links: https://github.com/gofiber/fiber, https://fiber.wiki

// 🦸 Not all heroes wear capes, thank you to some amazing people
// 💖 @valyala, @dgrr, @erikdubbelboer, @savsgio, @julienschmidt
// 💖 @valyala, @erikdubbelboer, @savsgio, @julienschmidt, @koddr

package fiber

Expand Down Expand Up @@ -71,7 +71,7 @@ type engine struct {
KeepHijackedConns bool
}

// New creates a Fiber instance
// New https://fiber.wiki/application#new
func New() *Fiber {
flag.Parse()
return &Fiber{
Expand Down
6 changes: 3 additions & 3 deletions context.go
@@ -1,9 +1,9 @@
// 🔌 Fiber is an Express.js inspired web framework build on 🚀 Fasthttp.
// 🚀 Fiber is an Express.js inspired web framework written in Go with 💖
// 📌 Please open an issue if you got suggestions or found a bug!
// 🖥 https://github.com/gofiber/fiber
// 🖥 Links: https://github.com/gofiber/fiber, https://fiber.wiki

// 🦸 Not all heroes wear capes, thank you to some amazing people
// 💖 @valyala, @dgrr, @erikdubbelboer, @savsgio, @julienschmidt
// 💖 @valyala, @erikdubbelboer, @savsgio, @julienschmidt, @koddr

package fiber

Expand Down
8 changes: 4 additions & 4 deletions listen.go
@@ -1,9 +1,9 @@
// 🔌 Fiber is an Express.js inspired web framework build on 🚀 Fasthttp.
// 🚀 Fiber is an Express.js inspired web framework written in Go with 💖
// 📌 Please open an issue if you got suggestions or found a bug!
// 🖥 https://github.com/gofiber/fiber
// 🖥 Links: https://github.com/gofiber/fiber, https://fiber.wiki

// 🦸 Not all heroes wear capes, thank you to some amazing people
// 💖 @valyala, @dgrr, @erikdubbelboer, @savsgio, @julienschmidt
// 💖 @valyala, @erikdubbelboer, @savsgio, @julienschmidt, @koddr

package fiber

Expand All @@ -29,7 +29,7 @@ func (r *Fiber) Shutdown() error {
return r.httpServer.Shutdown()
}

// Listen : https://gofiber.github.io/fiber/#/application?id=listen
// Listen : https://fiber.wiki/application#listen
func (r *Fiber) Listen(address interface{}, tls ...string) {
host := ""
switch val := address.(type) {
Expand Down
6 changes: 3 additions & 3 deletions methods.go
@@ -1,9 +1,9 @@
// 🔌 Fiber is an Express.js inspired web framework build on 🚀 Fasthttp.
// 🚀 Fiber is an Express.js inspired web framework written in Go with 💖
// 📌 Please open an issue if you got suggestions or found a bug!
// 🖥 https://github.com/gofiber/fiber
// 🖥 Links: https://github.com/gofiber/fiber, https://fiber.wiki

// 🦸 Not all heroes wear capes, thank you to some amazing people
// 💖 @valyala, @dgrr, @erikdubbelboer, @savsgio, @julienschmidt
// 💖 @valyala, @erikdubbelboer, @savsgio, @julienschmidt, @koddr

package fiber

Expand Down

0 comments on commit f5303fd

Please sign in to comment.