Fiber is an Express inspired web framework built on top of Fasthttp, the fastest HTTP engine for Go. Designed to ease things up for fast development with zero memory allocation and performance in mind.
package main
import "github.com/gofiber/fiber/v2"
func bootstrap(){
app.Get("/", func(c *fiber.Ctx) error {
return c.SendString("Hello, Fiber (Golang Framework)")
})
app.Listen(":3000")
}
func main(){
bootstrap()
}
Run this command to start your server
go run main.go
Browse to http://localhost:3000 and you should see Hello, Fiber Message! on the page.