Last active
February 16, 2021 05:24
-
-
Save mr-pascal/393034ca3f6cc7b937db47cd20890a27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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