Hello, World!
Embedded below is essentially simplest Fiber app, which you can create.
- package main
- import "github.com/gofiber/fiber"
- func main() {
- app := fiber.New()
- app.Get("/", func(c *fiber.Ctx) {
- c.Send("Hello, World!")
- })
- app.Listen(3000)
- }
go run server.go
Browse to http://localhost:3000
and you should see Hello, World!
on the page.