Skip to content

Instantly share code, notes, and snippets.

@mr-pascal
Last active February 16, 2021 05:24
Show Gist options
  • Save mr-pascal/393034ca3f6cc7b937db47cd20890a27 to your computer and use it in GitHub Desktop.
Save mr-pascal/393034ca3f6cc7b937db47cd20890a27 to your computer and use it in GitHub Desktop.
package main
import "github.com/gofiber/fiber/v2" // <-- Import Fiber
func main() {
// Create new Fiber application
app := fiber.New()
// Create a route on the default path, only returning some string
app.Get("/", func(c *fiber.Ctx) error {
return c.SendString("Hello, World 👋!")
})
// Listen on the port '3000'
app.Listen(":3000")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment