Files
gotemplresume/cmd/main.go
Berkay Akyazı 4352c5579a initial commit
2024-03-11 23:29:00 +03:00

19 lines
304 B
Go

package main
import (
"fmt"
"github.com/bakyazi/gotemplresume/router"
"github.com/labstack/echo/v4"
"os"
)
func main() {
port := os.Getenv("PORT")
if port == "" {
port = "8080"
}
e := echo.New()
router.Init(e)
e.Logger.Fatal(e.Start(fmt.Sprintf("%s:%s", os.Getenv("LISTEN_ADDR"), port)))
}