mirror of
https://github.com/Xevion/HATray.git
synced 2025-12-05 23:15:09 -06:00
feat!: expand to internal project, add app layer, develop service layer
This commit is contained in:
25
cmd/main.go
Normal file
25
cmd/main.go
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user