Files
go-api-template/main.go
2021-07-26 22:41:06 -04:00

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")))
}