mirror of
https://github.com/andwati/url-shortener.git
synced 2026-10-25 13:42:18 +00:00
17 lines
211 B
Go
17 lines
211 B
Go
package main
|
|
|
|
import "github.com/gofiber/fiber/v2"
|
|
|
|
|
|
func main(){
|
|
app := fiber.New()
|
|
|
|
app.Get("/", hello)
|
|
|
|
app.Listen(":3000")
|
|
}
|
|
|
|
func hello(c *fiber.Ctx) error {
|
|
c.SendString("Hello, World!")
|
|
return nil
|
|
} |