feat!: expand to internal project, add app layer, develop service layer

This commit is contained in:
2025-06-22 18:16:16 -05:00
parent 0ea312c1ad
commit 0a51119e4c
9 changed files with 452 additions and 187 deletions

25
cmd/main.go Normal file
View File

@@ -0,0 +1,25 @@
package main
import (
"fmt"
"log"
"os"
"ha-tray/internal"
)
func main() {
// Create new application instance
app := internal.NewApp()
// Setup the application (logging, panic handling, service initialization)
if err := app.Setup(); err != nil {
log.Fatalf("Failed to setup application: %v", err)
}
// Run the application
if err := app.Run(); err != nil {
fmt.Fprintf(os.Stderr, "Application error: %v\n", err)
os.Exit(1)
}
}