mirror of https://github.com/gofiber/fiber.git
Update README.md
parent
01386b5007
commit
825f4936f7
|
@ -42,7 +42,7 @@ $ go get -u github.com/gofiber/fiber
|
||||||
|
|
||||||
## Hello, world!
|
## Hello, world!
|
||||||
|
|
||||||
Embedded below is essentially the simplest Fiber app you can create.
|
Embedded below is essentially the simplest Fiber app you can create:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
// server.go
|
// server.go
|
||||||
|
@ -75,7 +75,7 @@ And now, browse to `http://localhost:8080` and you should see `Hello, World!` on
|
||||||
|
|
||||||
## Static files
|
## Static files
|
||||||
|
|
||||||
To serve static files, use the [Static](https://gofiber.github.io/fiber/#/?id=static-files) method.
|
To serve static files, use the [Static](https://gofiber.github.io/fiber/#/?id=static-files) method:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
package main
|
package main
|
||||||
|
@ -104,7 +104,7 @@ http://localhost:8080/css/style.css
|
||||||
|
|
||||||
## Middleware
|
## Middleware
|
||||||
|
|
||||||
Middleware has never been so easy, just like Express you call the `Next()` matching route function!
|
Middleware has never been so easy! Just like Express you call the `Next()` matching route function:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
package main
|
package main
|
||||||
|
|
Loading…
Reference in New Issue