more node and go changes
This commit is contained in:
19
main.go
Normal file
19
main.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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")))
|
||||
}
|
Reference in New Issue
Block a user