mirror of https://github.com/gofiber/fiber.git
Code syntax
parent
a6a85ff66a
commit
999081aa78
|
@ -36,7 +36,7 @@ Assuming you’ve already installed Go `1.11+` 😉
|
|||
|
||||
Install the [Fiber](https://github.com/gofiber/fiber) package by calling the following command:
|
||||
|
||||
```console
|
||||
```bash
|
||||
go get -u github.com/gofiber/fiber
|
||||
```
|
||||
|
||||
|
@ -67,7 +67,7 @@ func main() {
|
|||
|
||||
Go to console and run:
|
||||
|
||||
```console
|
||||
```bash
|
||||
go run server.go
|
||||
```
|
||||
|
||||
|
@ -96,7 +96,7 @@ func main() {
|
|||
|
||||
Now, you can load the files that are in the public directory:
|
||||
|
||||
```console
|
||||
```bash
|
||||
http://localhost:8080/hello.html
|
||||
http://localhost:8080/js/script.js
|
||||
http://localhost:8080/css/style.css
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
Установит пакет [Fiber](https://github.com/gofiber/fiber) с помощью следующей команды в консоле:
|
||||
|
||||
```console
|
||||
```bash
|
||||
go get -u github.com/gofiber/fiber
|
||||
```
|
||||
|
||||
|
@ -67,7 +67,7 @@ func main() {
|
|||
|
||||
Перейдите в консоль и запустите:
|
||||
|
||||
```console
|
||||
```bash
|
||||
go run server.go
|
||||
```
|
||||
|
||||
|
@ -96,7 +96,7 @@ func main() {
|
|||
|
||||
Теперь вы можете получить доступ ко всем файлам, которые находятся в папке `./public`:
|
||||
|
||||
```console
|
||||
```bash
|
||||
http://localhost:8080/hello.html
|
||||
http://localhost:8080/js/script.js
|
||||
http://localhost:8080/css/style.css
|
||||
|
|
Loading…
Reference in New Issue