fog/cmd/api/main.go

25 lines
288 B
Go
Raw Normal View History

2024-12-30 06:29:34 +00:00
package main
import (
"log"
"midnadimple.com/fog/internal/env"
)
func main() {
cfg := config{
addr: env.GetString("FOG_ADDR", ":8080"),
}
v1 := &v1Handler{
healthCheck: &healthCheckHandler{},
}
app := &application{
config: cfg,
v1: v1,
}
log.Fatal(app.run())
}