development:fiber
Cài đặt Fiber
% mkdir fiber.example.com tungnt@MacBook-Pro-cua-Nguyen-2 examples % cd fiber.example.com tungnt@MacBook-Pro-cua-Nguyen-2 fiber.example.com % go mod init fiber.example.com go: creating new go.mod: module fiber.example.com tungnt@MacBook-Pro-cua-Nguyen-2 fiber.example.com % go get github.com/gofiber/fiber/v2
Chạy ứng dụng
tungnt@MacBook-Pro-cua-Nguyen-2 fiber.example.com % go run main.go 2024/12/17 15:36:44 Server is running on http://localhost:3000 ┌───────────────────────────────────────────────────┐ │ Fiber v2.52.5 │ │ http://127.0.0.1:3000 │ │ (bound on host 0.0.0.0 and port 3000) │ │ │ │ Handlers ............. 4 Processes ........... 1 │ │ Prefork ....... Disabled PID ............. 57816 │
development/fiber.txt · Last modified: 2024/12/17 08:39 by tungnt