20 lines
381 B
Go
20 lines
381 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func main() {
|
|
app := fiber.New()
|
|
|
|
app.Get("/", func(c *fiber.Ctx) error {
|
|
return c.SendString("Hello, World 👋 RELOADED!")
|
|
})
|
|
// fmt.Println("Port listen on: ", os.Getenv("PORT"))
|
|
// fmt.Println("Timezone is: ", os.Getenv("TZ"))
|
|
app.Listen(fmt.Sprintf(":%s", os.Getenv("PORT")))
|
|
}
|