feat: rename folders

This commit is contained in:
Mauricio Siu
2024-06-30 20:31:53 -06:00
parent e494f3a3aa
commit 90f5981b60
195 changed files with 20 additions and 18 deletions

30
go-fiber/main.go Normal file
View File

@@ -0,0 +1,30 @@
package main
import (
"os"
"github.com/gofiber/fiber/v2"
)
func getPort() string {
port := os.Getenv("PORT")
if port == "" {
port = ":3000"
} else {
port = ":" + port
}
return port
}
func main() {
app := fiber.New()
app.Get("/", func(c *fiber.Ctx) error {
return c.JSON(fiber.Map{
"message": "Hello, Railway!",
})
})
app.Listen(getPort())
}