mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-31 11:52:41 +00:00
Update README_NEW.md
This commit is contained in:
parent
ce0117eedc
commit
27ad5cd237
@ -10,7 +10,7 @@ Designed to ease things up for fast development with zero memory allocation and
|
|||||||

|

|
||||||
[](https://pkg.go.dev/github.com/gofiber/fiber?tab=doc)
|
[](https://pkg.go.dev/github.com/gofiber/fiber?tab=doc)
|
||||||
|
|
||||||
```go
|
```golang
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "github.com/gofiber/fiber"
|
import "github.com/gofiber/fiber"
|
||||||
@ -69,7 +69,7 @@ Fiber is inspired by the Express framework, the most populair web framework on w
|
|||||||
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 [api documentation](https://fiber.wiki).
|
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 [api documentation](https://fiber.wiki).
|
||||||
|
|
||||||
_**Static files**_
|
_**Static files**_
|
||||||
```go
|
```golang
|
||||||
// ...
|
// ...
|
||||||
app := fiber.New()
|
app := fiber.New()
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ app.Listen(3000)
|
|||||||
```
|
```
|
||||||
|
|
||||||
_**Middleware**_
|
_**Middleware**_
|
||||||
```go
|
```golang
|
||||||
// ...
|
// ...
|
||||||
app := fiber.New()
|
app := fiber.New()
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ app.Listen(3000)
|
|||||||
```
|
```
|
||||||
|
|
||||||
_**404 Handling**_
|
_**404 Handling**_
|
||||||
```go
|
```golang
|
||||||
// ...
|
// ...
|
||||||
app := fiber.New()
|
app := fiber.New()
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ app.Listen(3000)
|
|||||||
```
|
```
|
||||||
|
|
||||||
_**JSON Response**_
|
_**JSON Response**_
|
||||||
```go
|
```golang
|
||||||
// ...
|
// ...
|
||||||
app := fiber.New()
|
app := fiber.New()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user