feat: init go project

This commit is contained in:
2026-06-06 22:19:21 +00:00
parent 3b6e443483
commit 7809552d05
8 changed files with 235 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package main
import (
"context"
"flag"
"fmt"
"os"
"overnight-trading-bot/internal/app"
)
func main() {
configPath := flag.String("config", "config.yaml", "path to YAML configuration file")
flag.Parse()
if err := app.Run(context.Background(), app.Options{
ConfigPath: *configPath,
Stdout: os.Stdout,
}); err != nil {
fmt.Fprintf(os.Stderr, "bot failed: %v\n", err)
os.Exit(1)
}
}